'images' Example : images « Javascript Collections « JavaScript Reference
- JavaScript Reference
- Javascript Collections
- images
'images' Example
<html>
<body>
<img src="image1.jpg" width="100" height="100">
<img src="image2.jpg" width="100" height="100">
<img src="image3.jpg" width="100" height="100">
<img src="image1.jpg" width="100" height="100">
<img src="image2.jpg" width="100" height="100">
<img src="image3.jpg" 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