How to get all the images from HTML documents using JavaScript?
Originally posted here!
To get all the images present in the document or HTML, you can use the read-only property called images in the document object.
Let's say you have a HTML document with 3 image tags like this,
<body>
<img src="https://via.pl...
melvingeorge-me.hashnode.dev2 min read