Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Is there any difference between body onload() and document.ready() function?



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

Post New Answer

More jQuery Interview Questions

How to get/set the html contents of an element using jQuery?

0 Answers  


How can you disable jquery animation?

0 Answers  


Explain the starting point of code execution in jquery? : jquery mobile

0 Answers  


What is cdn and how jquery is related to it?

0 Answers  


What is jquery selectors?

0 Answers  


How can jquery be used in conjunction with another javascript library that also uses $ for naming?

0 Answers  


What does $("P") will select?

0 Answers  


Please explain remove class jquery with example?

0 Answers  


Which is the starting point of code execution in jQuery?

1 Answers  


What are selectors in jquery? : jQuery Mobile

0 Answers  


What is the use of clone method in jQuery?

0 Answers  


How can images be made to appear scrolling one over another?

0 Answers  


Categories