Landon Noll looking up Fremont Peak Observatory 0.8m telescope Leonid 2001 meteor squall count at Fremont Peak

Redirect - Refresh Demo

[chongo's home] [Astronomy] [Mathematics] [Prime Numbers] [Programming] [Technology] [contacting Landon]


Overview

In 20 seconds, your browser should jump / redirect you to the cgidemo.html URL.

This will be done because the HTML header contains the META Refresh directive:


<META HTTP-EQUIV="Refresh" content="20; url=cgidemo.html">


Redirection does not always work

Some browsers allow you to stop the redirection by pressing the stop button Some broswers stop the redirection when you performing some browser function on the page such as viewing the source. Also few broken browsers do not honor the META Refresh directive. For t reason you should always include the URL of where you want to user to jump to should they, or their browser halt the redirect. See the top of this web page for an example.


Immediate redirection

If you want a browser to jump immediately to different URL, then you create a META Refresh directive with zero seconds:


<META HTTP-EQUIV="Refresh" content="0; url=cgidemo.html">

Here is an example of a immediate redirection.

Here is an example of a 5 second redirection.

One can also configure your web server to redirect URLs to another URL. In some ways, that is cleaner as the user does not notice the browser brouce that one sometimes sees in a redirect of 0 seconds.



Valid HTML 4.01!

© 1994-2013 Landon Curt Noll
chongo (was here) /\oo/\
$Revision: 7.5 $ $Date: 2013/05/27 11:48:39 $