Vidyalelo
JavaScript · Q46

Server

Programming · JavaScript · question 46

Q46

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

A.
onload = displayTime;
B.
window. = displayTime;
C.
window.onload = displayTime;
Answer
D.
window.onload = start;

Answer: Option C

Solution

Answer: Option C
Solution:
The above code starts displaying the time when the document loads.