This article mainly introduces common JavaScript return, automatic jump, refresh, and close statements. Examples of common javascript techniques are summarized, which is of great practical value, if you need it, refer to the examples in this article to illustrate common JavaScript return, automatic jump, refresh, and close statements. Share it with you for your reference. The details are as follows:
1. Javascript returns the previous page:
The code is as follows:
History. go (-1)
Two pages are returned:
The code is as follows:
History. go (-2)
2. backward:
The code is as follows:
History. back ()
3. the next page is returned:
The code is as follows:
Window. history. forward ()
4. return the page number. you can also use the Accessed URL:
The code is as follows:
Window. history. go (return position)
Example:
The code is as follows:
To previous page
Response. Write ("