![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Feb 2005
Posts: 2
OS: Windows XP SP.1
|
iframes
Im getting this message
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 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>
Code:
http://www.stoneddevilinc.com/?i=full_site_part_1.html Code:
<iframe src="home.html" WIDTH=505 HEIGHT=420 name="body" id="content"></iframe> Code:
full_site_part_1.html |
|
|
|
|
|
#2 (permalink) |
|
Registered User
Join Date: Feb 2005
Posts: 2
OS: Windows XP SP.1
|
ok fixed the javascript but still no go
Code:
<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>
|
|
|
|
![]() |
| Thread Tools | |
|
|