MCQOPTIONS
Saved Bookmarks
| 1. |
What is the code snippet to update the content of the timestamp element when the user clicks on it? |
| A. | imestamp.onLoad = function() { this.innerHTML = new Date().toString(); } |
| B. | imestamp.onclick = function() { this.innerHTML = new Date().toString(); } |
| C. | imestamp.onload = function() { this.innerHTML = new Date().toString(); } |
| D. | imestamp.onclick = function() { innerHTML = new Date().toString(); } |
| Answer» C. imestamp.onload = function() { this.innerHTML = new Date().toString(); } | |