The Number of images in the form

  1. <html>
  2. <body>
  3. <img src="one.jpg" width="100" height="100" />
  4. <img src="two.jpg" width="100" height="100" />
  5. <img src="three.jpg" width="100" height="100" />
  6. <img src="four.jpg" width="100" height="100" />
  7. <p>Number of images in this form are:
  8. <script type="text/javascript">
  9. document.write(document.images.length);
  10. </script>
  11. </p>
  12. </body>
  13. </html>
Output:
Number of images in this form are: 4