title: how to get id of any control using javascript?
body: <p>I have an html page with various textbox and button</p>
  
  <p>then I added this javascript</p>
  
  <pre><code>window.onload = function () {
    window.addEventListener('click', function (evt) {
      alert(this.id);
    }, false);
  };
  </code></pre>
  
  <p>my goal is to return the ID of the control clicked by the user (as an alert)?
  eventually I will add more to this. but as an alert is ok for now. Thank you</p>