getElementById - works in FireFox, Netscape & Opera; fails in IE returning null

Posted on Monday, April 28, 2008 by Krish Tags: , , , , ,
Category: Browser, Computer, Programing, Website

Just had a small issue with the javascript and IE. When i called the getElementById it is is working fine with Opera, Firefox and Netscape but fails in IE returning Null.

The issue was the javascript is written before the Html. So i just cut and pasted it below the html tag (any where after the component tag), it worked.


Advertisement


Just thought that this may help somebody