"image element".onerror method called when not expected
<p>relevant javascript source:</p>

<pre><code>  var e=o3('img');
  e.className="c";e.name="bo_im";e.src=b.href+'favicon.ico';e.onerror=i3d(e);


function i3d(a){a.src='http://www.archemarks.com/favicon1.ico';}
</code></pre>

<p>what about</p>

<pre><code>e.onerror=function(a){a.src='http://www.archemarks.com/favicon1.ico';};
</code></pre>

<p>o3() creates the image element.  I set the object properties in the second line.  I expected i3d to 
run only when the image does not load, i.e. when no favicon is provided by the web site.  </p>

<p>When I place onerror in the image element(via inline registration) this is how it works - as I expected.  </p>

<p>However, when I put it in the javascript as shown above it is called everytime a new image is created.  I need it to call only when the image is not loaded as i3d changes the .src to a generic image.</p>

<p>Thanks</p>
