Image.complete : img : HTML Tags JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » HTML Tags » img »

 

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.navioo.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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo HTML Tags
» img