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