Home >Web Front-end >JS Tutorial >js to achieve the effect of the previous page and the next page [with code]_javascript skills

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

WBOY
WBOYOriginal
2016-05-16 15:11:035760browse

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.
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