Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Image complete property

Image complete property

Image Object Reference Image Object


Definition and Usage

The complete property returns whether the browser has finished loading the image.

If loading is complete, it returns true, otherwise it returns false.

Syntax

imageObject.complete


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the complete property


Example

Example

The following example checks whether the image has finished loading:

Runoob Tutorial(runoob.com) Computerman

Try it »


Image Object Reference Image Object