Forum Moderators: open
I will show the code from help that i used:
<script>
function init(){
loc=location.href;
loc=loc.split("?");
if(loc.length>1)
document.getElementById("myframe").src=loc[1];
}
onload=init;
</script> CODE
<iframe id="myframe" src="about1.html" width="628" height="518" frameborder="0" scrolling="no" name="frame" ></iframe> this is in index.html
ind this the code of the button
CODE
<a href="index.html?thumb2.html"> [edited by: encyclo at 3:32 pm (utc) on Dec. 15, 2008]
[edit reason] no links to personal sites please, see posting guidelines [/edit]
Try
<script type="text/javascript">
function init(){
loc=location.href;
loc=loc.split("?");
if (document.getElementById('myframe') && (loc.[1] != '')) {
document.getElementById('myframe').src=loc[1];
}
}
window.onload=function() { init(); }
</script>
P.S., kindly review #13 of TOS [webmasterworld.com]