title: Making a conditional with multiple addEventListener
body: <p>I'm currently trying to make a function call after an onClick for a link which is specified by the variables, but only one of the links work, I've been using firebug and it isn't reporting any errors, so I don't know what the problem may be. The code is as follows:</p>
  
  <pre><code>window.onload = function () {
      var jpbutton = document.getElementById("jpbutton");  
      var usbutton = document.getElementById("usbutton");
      if (usbutton.addEventListener) 
      {
          usbutton.addEventListener("click", run, false);
      }
      else if(jpbutton.addEventListener)
      {
          jpbutton.addEventListener("click", execute, false);
      }  
  };
  </code></pre>
  
  <p>Thank you in advance!</p>