Redirect - Refresh Demo
|[chongo's home] [Astronomy] [Mathematics] [Prime Numbers] [Programming] [Technology] [contacting Landon]|
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.
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.
Landon Curt Noll
chongo (was here) /\oo/\
$Revision: 7.5 $ $Date: 2013/05/27 11:48:39 $