I am attempting to use jQuery to determine if an image has properly loaded.
The following works just fine (and returns true
or false
as of the state of the image) but only seems to work in IE, in FireFox, it seems to always return true
- even if the state is actually incomplete:
var image = $("img#myImage");
alert(image[0].complete);
What is the Firefox equivalent for image.complete
in JavaScript or jQuery?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…