Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>The Document Object</h1>
<h2>The embeds Property</h2>
<p>The number of embed elements in this document:</p>
<p id="demo"></p>
<embed type="image/jpg" src="pic_trulli.jpg">
<embed type="image/jpg" src="pic_trulli.jpg">
<script>
let num = document.embeds.length;
document.getElementById("demo").innerHTML = num;
</script>
</body>
</html>