Skip to content

Instantly share code, notes, and snippets.

@mason-stewart
Created September 23, 2011 21:55
Show Gist options
  • Select an option

  • Save mason-stewart/1238540 to your computer and use it in GitHub Desktop.

Select an option

Save mason-stewart/1238540 to your computer and use it in GitHub Desktop.
Fast way to check all the src of the images on a page
var imgs = document.getElementsByTagName("img");
var x = imgs.length;
while (x--){
console.log(imgs[x].getAttribute("src"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment