iGuest 3 Report post Posted February 23, 2005 Im getting this message Line: 14Char: 3Error: 'document.getElementByID(...)' is null or not an objectCode: 0URL: http://forums.xisto.com/no_longer_exists/ when i try to run this code<script type='text/javascript'>function setIframe() { var url = window.location.href; var i = url.indexOf("?i="); if( i>-1 ) { url = url.substr(i+3); document.getElementById("content").src = url; } }window.onload = setIframe();</script> with this urlhttp://forums.xisto.com/no_longer_exists/ to pull up this iframe<iframe src="home.html" WIDTH=505 HEIGHT=420 name="body" id="content"></iframe> with this sourcefull_site_part_1.html Im putting my tutorials up on a site and i need to have a link that loads the iframe with the right content. PLEASE HELP!! Share this post Link to post Share on other sites
iGuest 3 Report post Posted February 23, 2005 ok fixed the javascript but still no go <script language="JavaScript" type='text/javascript'>function setIframe() { var url = window.location.href; var i = url.indexOf("?i="); if( i>-1 ) { url = url.substr(i+3); document.getElementById("content").src = url; } }window.onload = "setIframe()";</script> Share this post Link to post Share on other sites