title: Can multiple event listeners/handlers be added to the same element using Javascript?
body: <p>I have:</p>
  
  <pre><code>if (window.addEventListener) {
    window.addEventListener('load',videoPlayer,false);
  }
  else if (window.attachEvent) { 
    window.attachEvent('onload',videoPlayer);
  }
  </code></pre>
  
  <p>and then later I have:</p>
  
  <pre><code>if (window.addEventListener) {
    window.addEventListener('load',somethingelse,false);
  } else if (window.attachEvent) { 
    window.attachEvent('onload',somethingelse);
  }
  </code></pre>
  
  <p>Is it preferred/functional to have them all together? Like</p>
  
  <pre><code>if (window.addEventListener) {
    window.addEventListener('load',videoPlayer,false);
    window.addEventListener('load',somethingelse,false);
  } else if (window.attachEvent) { 
    window.attachEvent('onload',videoPlayer,false);
    window.attachEvent('onload',somethingelse);
  }
  </code></pre>