Mega Code Archive

 
Categories / JavaScript Tutorial / HTML Tags
 

Image complete

The complete property 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. <html>     <head>     <title>Example of complete Property</title>     </head>     <img name="circle" src="http://www.rntsoft.com/style/logo.png">     <br>     <script language="JavaScript">     <!--     if(document.circle.complete == true)       document.write("The image has finished loading.");     else       document.write("The image has not finished loading.");     -->     </script>     </html>