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 |
Explain the difference between $(this) and 'this' in jquery?
Can we have multiple document.ready() function on the same page? : jquery mobile
Define jquery connect?
How to disable/enable an element with jQuery?
Differentiate the concepts of .js and .min.js?
Whether C# code behind can be called from jQuery?
Do we need to add jQuery file in both Master and Content page?
Explain "beforesend(xhr)" paremeter of jquery ajax method?
How does jquery store data related to an element?
How to multiple AJAX requests be run simultaneously in jQuery?
Where jquery mobile works? : jquery mobile
How to select all elements using jQuery?