Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Response redirect

Status
Not open for further replies.

Ragol1

Programmer
Oct 25, 2001
315
0
0
US
I want a form to process and display the posted page for 5 seconds before redirecting them to another page.
Could someone help me with this please.
 
Do it via client-side Javascript:

<SCRIPT LANGUAGE=&quot;JAVASCRIPT&quot;>
setTimeout(&quot;document.location.href='yourpage.html'&quot;,5000);
</SCRIPT>

Here, 5000 is in milliseconds

Hope this helps <Dmitriy>
dbrom@crosswinds.net
 
There is a way to do a refresh on the page using the META tag. In it you can set how many seconds before it refreshes, and what page you want it to refresh to.

Best advice, find a site that has moved and is using a redirect page to move you automatically. Hit stop on the browser and view source. That should give it to you.
 
It is good to use some good old HTML code to solve this problem:

...
<head>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<meta http-equiv=&quot;refresh&quot; content=&quot;5; url=nextpage.asp&quot;>
...
</head>

The &quot;content=5&quot; means the page will wait 5 seconds and then redirect you to the next page given as url=nextpage.asp

I hope it could help...

Ayac
 
<META HTTP-EQUIV=&quot;Refresh&quot; CONTENT=&quot;5;URL=http://www.some.org/some.html&quot;>

There's the META tag Dynapen was talking about.

Use this or Javascript I provided above

Good luck <Dmitriy>
dbrom@crosswinds.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top