Landon Noll looking up Fremont Peak Observatory 0.8m telescope Leonid 2001 meteor squall count at Fremont Peak
custom search of Landon Noll's web sites

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.






© 1994-2022 Landon Curt Noll
chongo (was here) /\oo/\
$Revision: 8.1 $ $Date: 2022/07/07 23:15:27 $