title: addEventListener not working in javascript
body: <p>I am learning addEventListener,I was testing one of the example but its not working .Can anybody tell me what i am doing wrong</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
  function click_handler1() { alert("click_handler1"); }
  function click_handler2() { alert("click_handler2"); }
  
      document.getElementById("id1").addEventListener("click", click_handler1, false);
      document.getElementById("id2").addEventListener("click", click_handler2, false);
  
  //window.addEventListener("load", setup, false);
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;a id="id1"&gt;some stuff&lt;/a&gt;
  &lt;a id="id2"&gt;stuff&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Thanks</p>