I write document.onload
code inside my head tag.. but it doesn't seems to work.
here is my code..
<head>
<script>
document.onload = function () {
alert("Window Loaded...!!");
}
</script>
</head>
But if i replace with window.onload
it perfectly works!!
What is the problem? Am I doing something wrong ??