Home > Web Front-end > JS Tutorial > body text

js to achieve the effect of the previous page and the next page [with code]_javascript skills

WBOY
Release: 2016-05-16 15:11:03
Original
5733 people have browsed it

Javascript Return to previous page:

1. history.go(-1), returns two pages: history.go(-2);

2. history.back().

3. window.history.forward() returns to the next page

4. window.history.go (return to the page, you can also use the visited URL)

Example:

Copy code The code is as follows:

Previous page

response.Write("")
response.Write("")
Previous page


Page jump:

P.S.
Tips (JS citing JS):

Copy code The code is as follows:



The above js implementation of the effect of the previous page and the next page [with code] is all the content shared by the editor. I hope it can give you a reference, and I also hope that everyone will support Script Home.
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