Question: what is the difference between body.onload() and jquery $(document).ready() function?
Answer: load() event is that the code included inside onload function will run once the entire page(images, iframes, stylesheets,etc) are loaded whereas the $(document). ready() event fires before all images,iframes etc. are loaded, but after the whole DOM itself is ready. ... We can have multiple document.