CODE
Line: 14
Char: 3
Error: 'document.getElementByID(...)' is null or not an object
Code: 0
URL: http://www.stoneddevilinc.com?i=full_site_part_1.html
Char: 3
Error: 'document.getElementByID(...)' is null or not an object
Code: 0
URL: http://www.stoneddevilinc.com?i=full_site_part_1.html
when i try to run this code
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>
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 url
CODE
http://www.stoneddevilinc.com/?i=full_site_part_1.html
to pull up this iframe
CODE
<iframe src="home.html" WIDTH=505 HEIGHT=420 name="body" id="content"></iframe>
with this source
CODE
full_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!!


