PDA

View Full Version : javascript: Is there a way to get bytes loaded?


RetroGamer1991
06-23-2006, 01:48 PM
I'm grabbing images dynamically and was wanting to know if Javascript knows the bytesize of an image. I'm doing this because I need to know if a image is loaded and if its not then to display some "loading image..." text or some loading animation.

Jon Hanlon
06-25-2006, 09:26 PM
There is a complete (http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/complete.asp) property which images have had since Netscape 4.