1. timestamp.onLoad = function() { this.innerHTML = new Date().toString(); }
  2. timestamp.onclick = function() { this.innerHTML = new Date().toString(); }
  3. timestamp.onload = function() { this.innerHTML = new Date().toString(); }
  4. timestamp.onclick = function() { innerHTML = new Date().toString(); }

Share with your friends
AhmedNazir

Call

Answer: Option 2

The above code snippet updates the content of the timestamp element when the user clicks on it.

Talk Doctor Online in Bissoy App