Edit This Code:
<!DOCTYPE html>
<html>
<body>

<img src="pic_htmltree.gif">
<img src="pic_navigate.gif">

<p id="demo"></p>

<script>
document.getElementById("demo").innerHTML =
"Number of images: " + document.images.length;
</script>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy