Difference between onload() and document.ready() Anonymous User260704-Dec-2012 Hi every one,can you tell me what are difference between onload() and document.ready() function used in jQuery?Thanks jqueryjquery Updated on 04-Dec-2012
AVADHESH PATEL
04-Dec-2012Hi Jayprakash,
Your solution is
1-We can add more than one document.ready() function in a page.
2-we can have only one onload function.
3-Document.ready() function is called as soon as DOM is loaded.
4-body.onload() function is called when everything (DOM, images..)gets loaded on the page.