image onload event not firing
<p>Should this work?</p>

<pre><code>&lt;script type=text/javascript&gt;

    function load_i () {
        img = new Image();
        img.onload = load_e();
        img.src = "whatever.jpg";
    }

    function load_e() { alert("loaded"); }

&lt;/script&gt;
</code></pre>

<p>Right now the image gets loaded, but apparently the onload event isn't being triggered. 
Tried it in FF and Chrome. </p>
