Solution for update button



examples/javascript/event_new_update.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';
   }
);
</script>