1.

What is the code to start displaying the time when the document loads?(a) onload = displayTime;(b) window. = displayTime;(c) window.onload = displayTime;(d) window.onload = start;

Answer» Correct answer is (c) window.onload = displayTime;

The explanation: window.onload is used to access the screen while the page is loading. The above code starts displaying the time when the document loads.


Discussion

No Comment Found

Related InterviewSolutions