Is there any difference between body onload() and document.ready() function?
Answer / chaitanya
document.ready() function is different from body onload() function for 2 reasons.
We can have more than one document.ready() function in a page where we can have only one body onload function.
document.ready() function is called as soon as DOM is loaded where body.onload() function is called when everything gets loaded on the page that includes DOM, images and all associated resources of the page.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are jquery selectors?
Explain the concepts of "$ function" in jquery with an example?
How can you apply a style on an element using jQuery?
What are the features of jQuery, has been used in web applications?
How to get/set the html contents of an element using jQuery?
How we can modify the css class in jquery?
Mac, windows or linux? Why do you love this platform while using jquery?
What are selectors in jquery?
Is it possible to use our own specific character in the place of $ sign in jquery? : jquery mobile
What is the difference between onload() and document.ready() function used in jquery?
Explain the use of each function in jquery?
With jquery which operating system is more compatible?