Count images in a document : Image Img : HTML JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » HTML » Image Img »

 

Count images in a document



<html>

<body>
<img border="0" src="http://www.navioo.com/style/logo.png" width="48" height="48">
<br>
<img border="0" src="http://www.navioo.com/style/logoRed.png" width="107" height="98">

<p>
<script type="text/javascript">
document.write("This document contains: " + document.images.length + " images.")
</script>
</p>
</body>

</html>



           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo HTML
» Image Img