Home > Web Front-end > JS Tutorial > A bookmarlet that collects images (js refreshes images on the page)_javascript skills

A bookmarlet that collects images (js refreshes images on the page)_javascript skills

WBOY
Release: 2016-05-16 18:26:20
Original
1179 people have browsed it

First look at the whole thing:

Copy the code The code is as follows:

javascript:w=window.open( "about:blank","images","scrollable=yes");w.document.open();for(i=0;i

");w.document.close();


The one I wrote above is used to display all the pictures in the current page in a new page. Its more user-friendly format is:
Copy code The code is as follows:

w=window.open("about:blank","images","scrollable=yes");
w.document .open();
for(i=0;iw.document.write("
");
w.document.close();



The principle is very simple, just create a new window and then traverse All images are displayed again.

Just apply what you have learned, haha...

The so-called: Bookmarklet

Bookmarklet, it is generally called a bookmarklet here in mainland China, and it is called a bookmarklet applet in Taiwan. or bookmarklet. It is a JavaScript script. Generally, bookmarklets on the Internet are links. Its installation is very simple. You only need to drag the link to your favorites.
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template