MDN self-hosted library · e01.org

Document: images property

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
firstImage = imageCollection.item(0);

firstImage = imageCollection[0];
js
for (const image of document.images) {
  if (image.src === "banner.gif") {
    console.log("Found the banner");
  }
}