1.js Code:
<script language= "JavaScript" >
var time = 5; //times, Seconds
var timelong = 0;
function Diplaytime () { //time Descending
Document.all.his.innerHTML = Time-timelong;
Timelong + +;
}
function Redirect () { //jump page
History.back ();
Window.location.href= "category-list";// Specify the target page to jump to
}
Timer=setinterval (' Diplaytime () ', 1000);//Display time
Timer=settimeout (' redirect () ', time * 1000); //Jump
</SCRIPT>
-----------------------------------------------------------------
2. page References:
<div align= "CENTER" style= "Font-size:15;color:threeddarkshadow;" >
If you don't do anything, the system will automatically return after 5 seconds!
</DIV>
<div align= "CENTER" style= "Font-size:15;color:threeddarkshadow;" id= "his" >
Auto-return after 5 seconds ...
</DIV>
Javascript/js How to automatically refresh pages and page jumps
1)
<meta http-equiv= "Refresh" content= "10;url=page to jump">
10represents the intervalTenseconds to refresh one time
2)
<script language= ' JavaScript ' >
Window.location.reload (TRUE);
</script>
If you are going to refresh a certainiframejust putwindowto replaceFramethe name orIDnumber
3)
<script language= ' JavaScript ' >
Window.navigate ("this pageurl ");
</script>
4>
Function ABC ()
{
Window.location.href= "/blog/window.location.href";
SetTimeout ("ABC ()", 10000);
}
Refresh this page:
Response.Write ("<script language=javascript>window.location.href=window.location.href;</script>")
Refresh Parent page:
Response.Write ("<script language=javascript>opener.location.href=opener.location.href;</script>")
Go to the specified page :
Response.Write ("<script language=javascript>window.location.href= ' yourpage.aspx ';</script>")
Refresh page Implementation Summary (HTML,ASP,JS)
' By Aloxy
Timed refresh:
1,<script>settimeout ("location.href= ' url '", ",") </script>
Description:URL is the URL address of the page to be refreshed
The wait time is =2 seconds,
2,<meta name= "Refresh" content= "N;url" >
Description
n is the number of seconds to wait before loading the specified URL.
The URL is a absolute URL to being loaded.
N, is the time to wait, in seconds
URL is the URL address of the page to refresh
3,<%response.redirect url%>
Description: Generally use a URL parameter or table only son value to determine whether an action occurred, and then use Response.Redirect
Refresh.
4, refresh frames page
Script language=javascript>top.leftfrm.location.reload ();p arent.frmTop.location.reload (); </script )
Issues that pop up after the form is refreshed
Response.Write ("<script>window.showmodaldialog ('. /oa/spcl.aspx ', window, ' dialogheight:300px; dialogwidth:427px; dialogtop:200px; dialogleft:133px ') </script> ");//open
Response.Write ("<script>document.location=document.location;</script>");
In the subform page code head , add <base target= "_self"/>
The refreshed content is added to the if (! IsPostBack)
in
Refresh the left side of the frame page
Refresh the left half of the frame page
Response.Write ("<script language=javascript>");
Response.Write ("parent.left.location.href= ' paydetailmanage_left.aspx '");
Response.Write ("</script>");
Page Timing Refresh Feature implementation
There are three ways to do this:
1, set in HTML :
after <title>xxxxx</title> join the following line!
Timed refresh:<meta http-equiv= "Refresh" content= "ten" >
represents the Refresh interval in seconds
2.jsp
<% response.setheader ("Refresh", "1"); %>
Refresh every second
3. use JavaScript.:
<script language= "JavaScript" >
SetTimeout ("Self.location.reload ();", 1000);
<script>
Once a second.
Page Auto Jump:
1
<title>xxxxx</title>
timed jump and refresh: <meta http-equiv= "Refresh" content= "20;url= http:// own url "
where 20 20 seconds and then jump to Span style= "Font-family:times New Roman;" >http:// own url
page.
Refresh the parent window after clicking the button to submit the form
A window opens B window
Then submit the data in B to the C window .