Does image download completely : Image Img : HTML JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » HTML » Image Img »

 

Does image download completely



    
<html>
<body>
<img id="myImage" 
     src="http://www.navioo.com/style/logo.png" 
     alt="http://www.navioo.com">
<script language="JavaScript">
    var m = document.getElementById("myImage").complete;
    if (m == true) {
        alert("The image is fully loaded");
    else {
        alert("The image is not completely loaded")
    }
</script>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo HTML
» Image Img