hi, i'm trying to loop through all images on the page, should be easy but i can't see where im going wrong here. the imgs gets populated with the images but the imgs.length returns 0; its somethign stupid but i just cant figure it out.
var imgs = document.getElementsByTagName('img');
console.log(imgs);
console.log(imgs.length);
if(imgs != null){
//console.log('in loop');
for(i=0; i<imgs.length; i++){
console.log(imgs.item(i).src);
}
}