1. Javascript returns to the previous page history.go(-1), returns two pages: history.go(-2);
2. history.back().
3. window.history.forward( )Return to the next page
4. window.history.go (return to the page, you can also use the visited URL)
Example:
Previous page
response .Write("
")
response.Write("")
Previous page
page jump: onclick="window.location.href= 'list.aspx'"
P.S.
Tips (JS citing JS):
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
How to automatically refresh the page:
1. Automatically refresh the page: Add the following code to the
area
The 20 fingers refresh the page every 20 seconds.
2. The page jumps automatically: add the following code to the
area
The 20 fingers jump after every 20 seconds. Go to the
http://www.javaeye.com
page
3. The page automatically refreshes the js version
How does ASP.NET output the refresh parent window script statement
1. this.response.write("
");
2. this.response.write("
");
3. Response.Write("
") JS script statement to refresh the frame
//How to refresh the page containing the frame using
//The child window refreshes 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 when the window is opened, call the following statement in <script>opener.location.reload();</script>: Can. <script>opener.window.location.href = opener.window.location.href;</script> 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