JS returns to the previous page and refreshes several methods. Reference Link: http://www.jbxue.com/article/11230.html
<a href= "javascript:history.go ( -1)"> Back to prev </a>
<a href= "javascript:location.reload ()> Refresh the current page </a>
<a href= "javascript:" onclick= "History.go ( -2);> returns to the first two pages </a>
<a href= "javascript:" onclick= "self.location=document.referrer;" > Go back to the previous page and refresh </a>
<a href= "</a>
Page Jump:
onclick= "window.location.href= ' list.php '"
JavaScript refreshes the page in several ways:
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
Ways to automatically refresh pages:
1. Automatic page refresh: Add the following code to the <meta http-equiv= "Refresh" content= "ten" >
10 refers to refreshing the page every 10 seconds.
2. Page Auto-jump: Add the following code to the <meta http-equiv= "Refresh" content= "10;url=http://www.jbxue.com" >
10 refers to 10 seconds after the jump to the page
JS automatically refresh the current page:
<script language= "JavaScript";
function Myrefresh ()
{
Window.location.reload ();
}
SetTimeout (' Myrefresh () ', 1000);//specify 1 seconds to flush
</script>
JS Refresh Framework Script Statement
//Refresh the page containing the frame
< Script Language=javascript>
Parent.location.reload ();
</script>
//child window refreshes parent window
<script language=javascript>
Self.opener.location.reload ();
</script>
(or <a href= "javascript:opener.location.reload ()" > Refresh </a>)
//How to refresh the page of another frame with
<script Language=javascript>
parent. Another FrameID.location.reload ();
</script>
to refresh when the window is closed or to open a window when it is opened, call the following statement in <body>:
<body onload= "opener.location.reload ()" > Refresh
<body onunload= "opener.location.reload ()" > Off when opening windows
<script language= "JavaScript";
Window.opener.document.location.reload ()
</script>