Javascript returns to the previous page
1. Javascript returns to the previous page 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 which page, you can also use the visited URL)
Example:
Previous pageresponse.Write("")
response.Write("
Several ways to refresh the page using Javascript:
//1
history.go(0)
//2
location. reload()
//3
location=location
//4
location.assign(location)
//5
document.execCommand('Refresh')
//6
window.navigate(location)
//7
location.replace(location)
//8
document.URL=location.href
Methods to automatically refresh the page:
1. Automatically refresh the page: Add the following code to the area
20 means refreshing the page every 20 seconds.
2. Automatic page jump: add the following code to the area
Finger 20 will jump to the http://www.jb51.net/tools/files.shtml page after 20 seconds
3. The page automatically refreshes js version
How does ASP.NET output the refresh parent window script statement
//1.
this.response.write("<script>opener.location.reload();</script>" );
//2.
this.response.write("<script>opener.window.location.href = opener.window.location.href;</script>");
//3.
Response.Write("")
JS refresh frame script statement
//How to refresh the page containing the frame using
//Subwindow Refresh the parent window
( or
Refresh )
//How to refresh the page of another frame using
If you want to refresh when the window is closed or refresh when the window is opened, just call the following statement in .
Refresh when the window is open
Refresh when the window is closed
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