HTML DOM images Collection
Complete Document Object Reference
Definition and Usage
The images collection returns a reference to all Image objects in the document.
Syntax
Example
<html>
<body>
<img border="0" src="hackanm.gif" width="48" height="48">
<br />
<img border="0" src="compman.gif" width="107" height="98">
<br /><br />
<script type="text/javascript">
document.write("This document contains: ")
document.write(document.images.length + " images.")
</script>
</body>
</html>
|
Try-It-Yourself Demos
Count the number of images in a document
Complete Document Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|