title: Using this inside an event handler
body: <p>I was trying to find the meaning of <code>this</code> keyword inside event handler function in the DOM level 3 event spec.</p>
  
  <p>As per my experiment <code>this</code> refers to the <code>event.currentTarget</code> object.</p>
  
  <p>Is this behavior mentioned somewhere in the standard?</p>
  
  <p>As per "JavaScript The Definitive Guide" book <code>this</code> refers to the <code>event target</code> which seems to wrong. <code>event.currentTarget</code> seems more logical as event handlers are invoked as the method of the HTML element object.</p>
  
  <p>Can someone please clarify?</p>
  
  <blockquote>
    <p>In case of bubbling I see "this" changes and means the
    event.currentTarget.</p>
  </blockquote>