How do I check if an image has preloaded successfully?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1977871/check-if-an-image-is-loaded-no-errors-in-javascript">Check if an image is loaded (no errors) in JavaScript</a>  </p>
</blockquote>



<p>After being loaded by javascript by setting img.src.</p>

<p>Thanks...!</p>
