P
pantagruel
the browser is firefox
the javascript:
function slideshowchecker(){
if(document.getElementById){alert('it works');}
slide = document.getElementById("slideX");
if(slide==null){
alert('yes2');
}
}
window.onload=slideshowchecker();
the document has a div id = slideX.
both alerts keep coming up.
here is the html
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>slideshow</title><script
src="jscripts/GTA.js" ></head><body><div class="slide" id="slideX">
grrrrrrrr
</div></body></html>
Why is slideX coming up null?
I'm really tired, I've been working from noon to 9 pm yesterday and
from 1 am to 5 am this morning.
the javascript:
function slideshowchecker(){
if(document.getElementById){alert('it works');}
slide = document.getElementById("slideX");
if(slide==null){
alert('yes2');
}
}
window.onload=slideshowchecker();
the document has a div id = slideX.
both alerts keep coming up.
here is the html
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>slideshow</title><script
src="jscripts/GTA.js" ></head><body><div class="slide" id="slideX">
grrrrrrrr
</div></body></html>
Why is slideX coming up null?
I'm really tired, I've been working from noon to 9 pm yesterday and
from 1 am to 5 am this morning.