View Full Version : can someone convert this from JS to HTML??

06-19-2004, 05:38 AM
can someone convert this from JS to HTML??

javascript:Ai7Mg6P='';for (i7M1bQz=0;i7M1bQz<document.images.length;i7M1bQz++){Ai7Mg6P+='<img src='+document.images[i7M1bQz].src+'><br>'};if(Ai7Mg6P!=''){document.write('<center>'+Ai7Mg6P+'</center>');void(document.close())}else{alert('No images!')}

someone told me that Willy Duit wrote this!! help Willy!!!! :(

Willy Duitt
06-19-2004, 06:03 AM
I did not write that Bookmarklet. ;)
Although I have posted it a few times.

Is this what you are looking for?

<script type="text/javascript">
function listImages(){
var image='';
for(var i=0; i<document.images.length; i++){
image += '<img src='+document.images[i].src+'><br>';
if(image != ''){
} else{ alert('No images!') };


<input type="button" onclick="listImages()" value="List Document Images">

BTW: This should have been posted in the Javascript Forum.
This forum is for completed scripts only.....

06-19-2004, 04:16 PM
cool thanks willy! sorry about the mix-up!! some said you wrote it?? hmm :confused: :D