What is the code snippet to update the content of the timestamp element when the user clicks on it?
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(); }
Answers
Answered by
1
hey mate........the answer is
A.timestamp.onLoad = function() { this.innerHTML = new Date().toString(); }
A.timestamp.onLoad = function() { this.innerHTML = new Date().toString(); }
Answered by
3
option A is the answer.
hope my answer helps you
hope my answer helps you
Similar questions