I was using a getElementById and kept getting an error in IE. (Firefox was fine.) So, I stripped out all the guts of the code and just tried this:
As expected, Firefox displays an alert box with the id (ar5000). IE, however, gives 'ar5000 is null or not an object'.Code:ar5000 = document.getElementById("ar5000"); alert(ar5000.getAttribute("id"));
It seems so simple and straightforward. What's wrong?
Bookmarks