Q46
What is the code to start displaying the time when document loads?
A.
onload = displayTime;
B.
window. = displayTime;
C.
window.onload = displayTime;
AnswerD.
window.onload = start;
Answer: Option C
Solution
Answer: Option C
Solution:
The above code starts displaying the time when the document loads.