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 - Called after all DOM, JS files, Images, Iframes, Extensions and others completely loaded. This is equal to $(window).load(function() {});
body onload="" - Called once DOM loaded. This is equal to $(document).ready(function() {});
body onload=""