title: JavaScript event object?
body: <p>I was told that an 'event object' gets passed as a parameter to the function in the program below. What would an example of an 'event object' be? Is it, for example, the <code>&lt;p&gt;</code> element if you clicked on a <code>&lt;p&gt;</code> or <code>&lt;html&gt;</code> if you clicked on <code>&lt;html&gt;</code>, or is the event object the actual 'click'?</p>
  
  <pre><code>document.addEventListener('click', function(e){
  console.log(e.target.nodeName);
  },false);
  </code></pre>