Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What is the code to start displaying the time when document loads?

  2. A.

     onload = displayTime;

    B.

     window. = displayTime;

    C.

     window.onload = displayTime;

    D.

     window.onload = start;

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The above code starts displaying the time when the document loads.


Be The First To Comment