chunky1318
05 Nov 2010, 07:36 PM
Hey all,
I have a problem with the document.getElementById('tag').innerHTML =
My code is as follows...
<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
I have a problem with the document.getElementById('tag').innerHTML =
My code is as follows...
<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