Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. A.

     DOMContentLoaded

    B.

     readystatechange

    C.

     Both DOMContentLoaded & readystatechange

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    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.


Be The First To Comment