Image.complete : img « HTML Tags « JavaScript Tutorial

JavaScript Tutorial
1. Language Basics
2. Operators
3. Statement
4. Development
5. Number Data Type
6. String
7. Function
8. Global
9. Math
10. Form
11. Array
12. Date
13. Dialogs
14. Document
15. Event
16. Location
17. Navigator
18. Screen
19. Window
20. History
21. HTML Tags
22. Style
23. DOM Node
24. Drag Drop
25. Object Oriented
26. Regular Expressions
27. XML
28. GUI Components
29. Animation
30. MS JScript
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
JavaScript Tutorial » HTML Tags » img 
21. 9. 3. 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.java2s.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>

        
21. 9. img
21. 9. 1. Image
21. 9. 2. Image.border
21. 9. 3. Image.complete
21. 9. 4. Image.height
21. 9. 5. Image.hspace
21. 9. 6. Image.lowsrc
21. 9. 7. Image.name
21. 9. 8. Image.src
21. 9. 9. Image.vspace
21. 9. 10. Image.width
21. 9. 11. Change link image in mouse in and mouse out
21. 9. 12. Image substitute
21. 9. 13. Image load onerror event (IE)
21. 9. 14. Add onerror handler to image element within document element array (IE)
21. 9. 15. Replace an Image under mouse event (onMouseOver, onMouseOut)
21. 9. 16. Slide Show
w__w___w.__j___a___v__a_2__s___.co___m_ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.