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
Learn XML with <oXygen/> XML Editor - Free Trial!
|
|
oXygen helps you learn to define,
edit, validate and transform XML documents. Supported technologies include XML Schema,
DTD, Relax NG, XSLT, XPath, XQuery, CSS.
Understand in no time how XSLT and XQuery work by using the intuitive oXygen debugger!
Do you have any XML related questions? Get free answers from the oXygen
XML forum
and from the video
demonstrations.
Download a FREE 30-day trial today!
|
|