What exactly is the difference between the window.onload event and the onload event of the body tag? when do I use which and how shoul
window.onload
onload
body
window.onload can work without body. Create page with only the script tags and open it in a browser. The page doesn't contain any body, but it still works..