This fires after everthing is fully loaded. Use window.onload cause document.onload doesn't work xbrowser
<head> window.onload = windowHandler; function windowHandler(){ alert('blabla') } </head>