Image.complete

JavaScript 1.1+, JScript 1.0+ Nav3+, IE 3+, Opera3+ Syntax

							image.complete

Description

The complete property of the Image object is a Boolean value that specifies if an image has finished loading. After an image has completely loaded, the property is changed to false. If the load is aborted or an error occurs during the loading process, the property will be set to true.

Example

Listing 7.303 displays a message based on the value of the complete property.

Listing 7.303 Example of the complete Property
 <html> <head> <title>Example of complete Property</title> </head> <img name="circle" src="circle.gif"> <br> <script language="JavaScript"> <!-- Hide //Display message about loading progress of image if(document.circle.complete ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.