'images' Example
<html> <body> <img src="http://www.java2s.com/style/logo.png" width="100" height="100"> <img src="http://www.java2s.com/style/logo.png" width="100" height="100"> <img src="http://www.java2s.com/style/logo.png" width="100" height="100"> <img src="http://www.java2s.com/style/logo.png" width="100" height="100"> <img src="http://www.java2s.com/style/logo.png" width="100" height="100"> <img src="http://www.java2s.com/style/logo.png" width="100" height="100"> <img src="http://www.java2s.com/style/logo.png" width="100" height="100"> <img src="http://www.java2s.com/style/logo.png" width="100" height="100"> <img src="http://www.java2s.com/style/logo.png" width="100" height="100"> <button onclick="alert(document.images.length);"> Number of images in the document </button> </body> </html>