Does image download completely
<html> <body> <img id="myImage" src="http://www.java2s.com/style/logo.png" alt="http://www.java2s.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>