w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: HTML DOM completeÊôÐÔ
The complete property returns whether or not the browser has finished loading the image.
completeÊôÐÔ¿ÉÒÔ·µ»ØÍ¼Æ¬ÊÇ·ñÒѾ¼ÓÔØÍê±Ï
If the image is finished loaded it returns true, otherwise it returns false.
Èç¹û¼ÓÔØÍê±Ï¾Í·µ»Øtrue,·ñÔò¾ÍÊÇfalse
imageObject.complete |
The following example checks if the image is finished loaded on body onload:
ÏÂÃæ¾ÙÀýÖÐÎÒÃǽ«¼ì²éͼƬÔÚbody onloadʱÊÇ·ñ¼ÓÔØÍê±Ï£º
<html> <img id="compman" src="compman.gif" alt="Computerman" </body> |
Check if the image is finished loaded
¼ì²éͼƬÊÇ·ñ¼ÓÔØÍê±Ï
ÆÀÂÛ (0)
All