'images' Example : images « Javascript Collections « JavaScript DHTML






'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>

    
      
      








Related examples in the same category