22 01 2010
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:
Typography – It’s not what you say, but how you say it document.getElementById() in MSIE