Omicron Llama

Coding all day, every day.

document.getElementById() in MSIE

This is strange. I have an issue which I have grossly simplified in order to explain the situation. Below are two snippets of code which work perfectly fine in all browsers but IE. The second code snippet gives the error message:

Message: ‘document.getElementById(…)’ is null or not an object
As you can see, the difference is that the
This is the code that breaks in MSIE:


Code that works in everything:


Leave a Reply

Your email address will not be published. Required fields are marked *