title: Javascript "addEventListener" Event Fires on Page Load
body: <p>When I run the following script, the event always fires on page load.  I am not sure what I am doing wrong here, I create the element, find it in the DOM then attach a listener, but it always fires the event when the page loads and not when the element is clicked.</p>
  
  <pre><code>&lt;script type="text/javascript" language="javascript"&gt;
      document.write("&lt;div id=\"myDiv\"&gt;I am a div&lt;/div&gt;");
      el = document.getElementById("myDiv");
      el.addEventListener("click", alert("clicktrack"), false);
  &lt;/script&gt;
  </code></pre>