Severe issues with document.GetElementById

Posted by BadDayComing on Stack Overflow See other posts from Stack Overflow or by BadDayComing
Published on 2010-04-13T18:30:36Z Indexed on 2010/04/13 18:33 UTC
Read the original article Hit count: 386

Filed under:
|

I've been using document.GetElementById succesfully but from some time on I can't make it work again. Old pages in which I used it still work but things as simple as this:

<html>
<head>
 <title>no title</title> 
 <script type="text/javascript">
 document.getElementById("ThisWillBeNull").innerHTML = "Why is this null?";
 </script>
</head>
<body>
 <div id="ThisWillBeNull"></div>
</body>
</html>

Are giving me "document.getElementById("parsedOutput") is null" all the time now. It doesnt matter if I use Firefox or Chrome or which extensions i have enabled or what headers I use for the html, it's always null and I can't find what could be wrong.

Thanks for your input =)

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about getelementbyid