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 |
How to get/set the html contents of an element using jQuery?
How can you disable jquery animation?
Explain the starting point of code execution in jquery? : jquery mobile
What is cdn and how jquery is related to it?
What is jquery selectors?
How can jquery be used in conjunction with another javascript library that also uses $ for naming?
What does $("P") will select?
Please explain remove class jquery with example?
Which is the starting point of code execution in jQuery?
What are selectors in jquery? : jQuery Mobile
What is the use of clone method in jQuery?
How can images be made to appear scrolling one over another?