How body onload() function is different from document.ready() function used in jQuery?
Submitted by: AdministratorDocument.ready() function is different from body onload() function because off 2 reasons.
1. We can have more than one document.ready() function in a page where we can have only one onload function.
2. 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.
Submitted by:
1. We can have more than one document.ready() function in a page where we can have only one onload function.
2. 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.
Submitted by:
Read Online Creative UI/UX Designers Job Interview Questions And Answers
Top Creative UI/UX Designers Questions
☺ | Explain what is jQuery UI? |
☺ | Can we submit a form by ajax using Jquery? |
☺ | What are different type of selectors in Jquery? |
☺ | Can you combine Jquery combined with other libraries? |
☺ | Name some of methods of JQuery used to provide effects? |
Top Data Structure Categories
☺ | Data Center Manager Interview Questions. |
☺ | Sort And Searching Interview Questions. |
☺ | Creative UI/UX Designers Interview Questions. |
☺ | Data Structure Linked list Interview Questions. |
☺ | Data Structure Arrays Interview Questions. |