document.getElementById null error

Field of Dreams download If you keep getting this error it is because the element ID truly is null.  But you say “But it’s write here on the page with a DIV id on it!”? Well you’re probably doing what I did – calling the getElementById before the DIV exists in the normal flow of the page. Put your call in a function call after the DIV on the page (not in the page header) and the issue goes away.

??????? ?????

Leave a Reply