Display no of form of an image using document object.
CODING:
<html>
<head>
<title></title>
<body>
<img src=donot.jpg height=200 width=300>
<img src=donot.jpg height=200 width=300>
<img src=donot.jpg height=200 width=300>
<script>
document.write("<br>", document.images.length, " IMAGES DISPLAY.");
</script>
</html>
CODING:
<html>
<head>
<title></title>
<body>
<img src=donot.jpg height=200 width=300>
<img src=donot.jpg height=200 width=300>
<img src=donot.jpg height=200 width=300>
<script>
document.write("<br>", document.images.length, " IMAGES DISPLAY.");
</script>
</html>
Comments
Post a Comment