Updated answer: Look at this site. It uses the trick, seeing that the last element of document.getElementsByTagName ("*") is defined or not. It seems to work in Opera and IE.
Original answer: You cannot check, but you can do:
window.setTimeout(function () {
This will do your things definitely after loading the page.
Anthony mills
source share