What Are The Differences Between “body.onload” And “document.ready” Methods?
Answer»
“body.onload” method will be used only once in a page where as “document.READY” method can be used MULTIPLETIMES in a same page. “body.onload” method will be called once all the resources of the page are loaded. (images, CSS and DOM).
But “document.ready” method called once DOM is ready and it does not wait TILL other resources are loaded.