Sail E0 Webinar
Question
What is the code snippet to update the content of the timestamp element when the user clicks on it?
Options:
A .  timestamp.onLoad = function() { this.innerHTML = new Date().toString(); }
B .  timestamp.onclick = function() { this.innerHTML = new Date().toString(); }
C .  timestamp.onload = function() { this.innerHTML = new Date().toString(); }
D .  timestamp.onclick = function() { innerHTML = new Date().toString(); }
Answer: Option B

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers