View Full Version : Dynamic Images and download status

01-27-2005, 10:35 PM
Im using an <IMG> tag and am modifying the .src propertty to dynamically change the image on screen. I also make use of a timer to help update the <IMG> but at times downloading the image can take longer than the timer. Is there a way to check the load status of an image, that is, if it is currently downloading, completed downloading, or just plain failed?

01-31-2005, 06:14 AM
<img src="image.gif" onload="alert('loaded!')" onerror="alert('error!')" />