document.getElementById('id of div that definately exists')
returns null.
I originally loaded the javascript last in order to make sure I wouldn't need to worry about the onload event. I also tried using the onload event. It's very spooky. Any ideas or help would be greatly appreciated.
It can be caused by:
Please, post your code.