Several ways to refresh the page of JavaScript:
1. History.go (0)
2. LOCATION.Reload ()
3. LOCATION = local
4. Location.assign (local)
5. Document.execcommand ('Refresh')
6. Window.navigate (local)
7. Location.replace (local)
8. document.url = locally.href
Refresh the page method:
1. Automatically refresh the page: Add the following code to the <head> area
<meta http-equiv = "refresh" content = "20">
Among them, 20 fingers refresh the page every 20 seconds.
2. Automatically jump on the page: Add the following code to the <head> area
<meta http-equiv = "refresh" content = "20; url = http://jay-xu33.cnblogs.com/">
Among them, 20 fingers jump to http://jay-xu33.cnblogs.com/ page
3. Refresh the JS version of the page
<script language = "javascript">
Function myrefresh ()
{{
Window.Location.Reload ();
}
settimeout ('myrefresh ()', 1000); // Specify once every 1 second refresh
</script>
ASP.NET how to output to refresh the parent window script sentence
1. This.Response.write ("<script> Opener.Location.Reload (); </script>");
2. This.Response.write ("<script> Opener.window.location.href = Opener.window.location.href; </script>"););); </script> "));); </script>"));); </script> ");
3. Response.write ("<script language = javascript> opener.window.navigate ('' 'page you want to refresh. </Script>");
JS refresh frame script sentence
// How to refresh the page containing the framework
<script language = javascript>
parent.location.Reload ();
</script>
// Sub -window refresh the father window
<script language = javascript>
Self.opent.location.reload ();
</script>
(Or <a href = "javascript: Opener.location.reload ()"> refresh </a>)
// How to refresh the page of another framework
<script language = javascript>
parent. Another frameid.Location.reload ();
</script>
If you want to refresh the window or refresh when you want to open the window, just call the following sentences in <body>.
<body onload = "Opener.Location.Reload ()"> Refresh when opening the window
<body onunload = "Opener.Location.Reload ()"> Refresh when closing the window
<script language = "javascript">
Window.opener.document.Location.reload ()
</script>