Home >Web Front-end >JS Tutorial >javascript document.images example_image effects
<script> <br>dxy=''; <br>for (cnrose=0;cnrose<document.images.length;cnrose ) <BR>{ <BR> dxy ='<img src=' document.images[cnrose].src '>[br]' <br>} <br><br>if(dxy!='') <br> { <br> document.write(dxy); <br> void(document.close()) <br> } <br>else <br> { <br> alert('No images!') <br> } <br></script>
Bottom This is generated by removing the carriage return and adding a javascript: in front of it. Open a website with pictures, copy this
paragraph to the address (url), press enter, and see the effect. Valid for .
javascript:dxy='';for (cnrose=0;cnrose
(document.close())}else{alert('No images!')}