How to get all the image sources on a particular Page using Javascript

前端 未结 5 1363
感动是毒
感动是毒 2021-02-08 03:26

I am using a simple script to find an image on a page and get its source.

function img_find() {
    var img_find2 = document.getElementsByTagName(\"img\")[0].sr         


        
5条回答
  •  甜味超标
    2021-02-08 03:44

    It may help you...

    img=document.getElementsByTagName("img");
    for(i=0; i'; 
    }
    document.write(imgp);
    

提交回复
热议问题