Solution for update and reset button



examples/javascript/event_new_update_reset.html
<button>Click me</button>
<script>
var btn = document.getElementsByTagName('button')[0];
btn.addEventListener('click', function(e) {
      console.log(e);
      document.getElementsByTagName('button')[0].innerHTML = 'Clicked';
      setTimeout(function() {
         document.getElementsByTagName('button')[0].innerHTML = 'Click me again';
      }, 2000);
   }
);
</script>