HTML DOM complete Property
Complete Image Object Reference
Definition and Usage
The complete property returns whether or not the browser has finished loading
the image.
If the image is finished loaded it returns true, otherwise it
returns false.
Syntax
Example
The following example checks if the image is finished loaded on body onload:
<html>
<head>
<script type="text/javascript">
function alertComplete()
{
alert(document.getElementById("compman").complete)
}
</script>
</head>
<body onload="alertComplete()">
<img id="compman" src="compman.gif" alt="Computerman"
width="107" height="98" />
</body>
</html>
|
Try-It-Yourself Demos
Check
if the image is finished loaded
Complete Image Object Reference
|