title: JavaScript/jQuery event listener on image load IE issues
body: <p>I am looking for a way to implement this for as many browsers as possible:</p>
  <pre><code>var image = new Image();
  image.addEventListener(&quot;load&quot;, function() {
      alert(&quot;loaded&quot;);
  }, false);
  image.src = &quot;image_url.jpg&quot;;
  </code></pre>
  <p>This didn't work in IE so I googled and found out that IE's lower than 9 do not support <code>.addEventListener()</code>. I know there is a jQuery equivalent called <code>.bind()</code> but that doesn't work on an <code>Image()</code>. What do I have to change for this to work in IE too?</p>