Can *addEventListener* be used to add several functions to the same event on same target? Or does another *addEventListener* replace a previous setting? 

I ask because I want the code from this site and the question is if it would be much easier done by *addEventListener*, or is it a similar solution? I know **window.onload = f** and **addEventListener("load", f)** is almost the same, but not sure on this details. Do I need that code? Asking the other way: Why do they not use *addEventListener* if it can add?..

<http://webreference.com/programming/javascript/onloads/index-2.html>

```
function addLoadEvent(func) { 
  var oldonload = window.onload; 
  if (typeof window.onload != 'function') { 
    window.onload = func; 
  } else { 
    window.onload = function() { 
      if (oldonload) { 
        oldonload(); 
      } 
      func(); 
    } 
  } 
}

```