Question
Can you please explain the difference between body onload() and document.ready() function?

Answers

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.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q Writ which is issued by a court to prevent a person from holding an office to which he is not entitled:
  • Q Who is referred to as ‘Frontier Gandhi’?
  • Q Comment on Organ culture.
  • Q In what areas do you perceive there to be gaps in personnel in this company? If the company had unlimited resources for creating new positions, in what areas should those positions be created?
  • Q Explain 'customer/vendor master records?
  • Q Can genesys continue generation on an interrupt?
  • Q Which of the following addresses can be assigned to a host when using a subnet mask of 255.255.254.0? (Select three) A. 113.10.4.0 B. 186.54.3.0 C. 175.33.3.255 D. 26.35.3.255 E. 152.135.7.0 F. 17.35.36.0
  • Q Explain pentaho reporting evaluation.?
  • Q Lalo Schifrin composed which famous TV series theme
  • Q How is the nervous system of nematodes organized? Where are the neural chords located in their body?
  • Q How to replace faulty hdd in exadata storage?