JavaScript Tutorial/Document/images
document.images
Syntax
document.images
document.images[index]
document.images.length
The length property contains the number of objects that are in the images[] array.
<html>
<h2>A Circle</h2>
<img src="http://www.wbex.ru/style/logo.png">
<h2>A Square</h2>
<img src="http://www.wbex.ru/style/logo.png"><br>
<script language="JavaScript">
<!--
document.write(document.images.length," image objects.");
-->
</script>
</html>