Vidyalelo
JavaScript · Q90

Document Object Model And Event Handling

Programming · JavaScript · question 90

Q90

Which event is triggered sooner when the document and its elements are ready to manipulate?

A.
DOMContentLoaded
B.
readystatechange
C.
Both DOMContentLoaded & readystatechange
Answer
D.
None of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
DOMContentLoaded and readystatechange are alternatives to the load event: they are triggered sooner, when the document and its elements are ready to manipulate, but before external resources are fully loaded.