Results 1 to 2 of 2

Thread: Javascript innerHTML problem

  1. #1
    Join Date
    Nov 2010
    Location
    Oxford UK
    Posts
    2

    Angry Javascript innerHTML problem

    Hey all,

    I have a problem with the document.getElementById('tag').innerHTML =

    My code is as follows...

    Code:
    <head>
    <script type="text/javascript">			
    Function loadcv(){
    document.getElementById('framechange').innerHTML = '<iframe name="frame" src="cv/index.html" scrolling="no" class="frame" frameborder="0"></iframe>' ;
    }		
    </script>
    </head>
    <body>
    <input type='button' onclick='loadcv()' value='load CV' />
    <hr />
    <div id="framechange">
    <iframe name="frame" src="home.html" class="frame" frameborder="0"></iframe>
    </div>
    </body>
    This basically isnt working, i have tried various other ways, google has no answers, but what im basically trying to do is...

    I have a main page with links, which open into an iframe, but my CV link, it will be opening a page with links and a seperate iframe within the main iframe, so I wish to remove the scroll bar on the main iframe.

    If anyone could help with this, its would be great!

    Thanks

    James

  2. #2
    Join Date
    Nov 2010
    Location
    Oxford UK
    Posts
    2
    Problem solved now....

Similar Threads

  1. Odd innerHTML Behaviour
    By punk0mi in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 17 Mar 2010, 01:05 PM
  2. JavaScript innerHTML creates line break [problem]
    By Amoguai in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 04 Feb 2010, 03:11 PM
  3. Problem w/Javascript
    By ReptileEats in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 27 Jan 2008, 08:59 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •