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 is the difference between javascript and jquery?
What are selectors in jQuery and how many types of selectors are there?
Explain width() vs css(‘width’)?
What is event.PreventDefault in jQuery?
How to use migrate jQuery plugin?
Define the script build up by jquery?
Define the use jquery.data method?
What is the use of toggle() method in jquery?
What does dollar sign ($) means in jQuery?
What are selectors in jquery?
Explain the difference between $(this) and 'this' in jquery?
Is jquery a framework?