When the document loads, what is the code to start displaying the time?
A. displayTime = window
B. displayTime = onload
C. displayTime = window.onload
D. start with window.onload;
Answer:C
When the document loads, what is the code to start displaying the time?
A. displayTime = window B. displayTime = onload C. displayTime = window.onload D. start with window.onload;
Explanation: window.onload is a function that allows you to view the screen while the page is loaded. When the document loaded, the above code begins displaying the time.