title: Alternate shortcut for addEventListener()
body: <blockquote>
  <p><strong>Possible Duplicate:</strong><br />
  <a href="https://stackoverflow.com/questions/9028811/what-is-the-difference-of-using-addeventlistener">What is the difference of using addEventListener?</a></p>
  </blockquote>
  
  <p>I noticed that events can be assigned directly on objects, without having to use addEventListener:</p>
  <pre><code>document.onload = function(e){
    // do stuff..
  };
  </code></pre>
  <p>instead of:</p>
  <pre><code>document.addEventListener('load', function(e){
    // do stuff..
  });
  </code></pre>
  <p>So is there any reason I shouldn't use the first method? Why don't other people use it?</p>
  <p>Also this appear to work in old IE too (in which you needed attachEvent).</p>