Home >Web Front-end >JS Tutorial >Run directly in IE to display the pictures in the current web page. Recommended_javascript skills

Run directly in IE to display the pictures in the current web page. Recommended_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:26:421152browse
jb51 revised version
To use, just enter it directly in the IE address bar of the opened webpage

1. Display all pictures in the webpage
Copy code The code is as follows:

javascript:s='';for (i=0;i
'};if(s!=''){document.write('');void(document.close())}else{alert('No images!')}

2. Display the web page except Other pictures
Copy code The code is as follows:

javascript:for(i= 0;i

3. The webpage is reduced by 0.5 times
Copy code The code is as follows:

javascript:void(s=document.body. style);void(z=s.getAttribute('zoom'));if(z){s.setAttribute('zoom',(parseInt(z)-50) '%');}else s.setAttribute(' zoom','50%')

4. The webpage is zoomed in 1.5 times
Copy code The code is as follows:

javascript:void(s=document.body.style);void(z=s.getAttribute('zoom'));if(z){s .setAttribute('zoom',(parseInt(z) 50) '%');}else s.setAttribute('zoom','150%')

5. Display web page Source code (for encrypted ones, you can directly display the source code before encryption)
Copy code The code is as follows:

javascript:s=document.documentElement.outerHTML;document.write('');document.body.innerText=s;


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn