Forum Moderators: open

Message Too Old, No Replies

Delayed Redirect

how to create a delayed redirect anyone?

         

GoodGolly

4:28 am on Mar 19, 2007 (gmt 0)

10+ Year Member



Greetings.

Here's what I desperatley would like to do.

When the user visits the page, the page stays there, and loads.
After 20 seconds, the browser redirects to another page, without user prompt.

Please keep in mind, I don't know the first thing about php or java..
explain it to me as though I were a moron.

I GREATLY appreciate this!
Thanx!
~g

penders

8:08 am on Mar 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



A quick way is to use a meta refresh. Insert the following element in the <head> section of your page, below your <title> element.

<meta http-equiv="refresh" content="20;url=another_page.html">

This will jump to another_page.html after 20 secs.

However, this form of refresh is not recommended (considered a poor method of redirection by the W3C) - it does not communicate anything back to the client (whether it is a permanent(HTTP 301) or temporary(HTTP 307) redirect) and the user has little control over it.