SO, sorry about the title, but I don't know how else to better explain it.
Is there a reason why this wouldn't work??
Out on my end I recive a "document.getElementById("navigation") is null" huh?? Clearly its not.
Seem in any document on this machine that trys to use getElementById or getElementByTagName fails to do so now,... in both FF and IE... someone shoot me please!
Oh just to make things even more freaky. Changing the javascript into this:
Gives me the same null error, sometimes I get a "nav" is not defined, but again this is in both IE and FF.
Is there a reason why this wouldn't work??
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript"> var nav = document.getElementById('navigation').innerHTML; alert(nav); </script> </head> <body> <div id="navigation"> <ul> <li> something test! </li> </ul> </div> </body> </html>
Seem in any document on this machine that trys to use getElementById or getElementByTagName fails to do so now,... in both FF and IE... someone shoot me please!
Oh just to make things even more freaky. Changing the javascript into this:
Code:
var nav = document.getElementById("nav"); alert(nav.innerHTML);
Comment