Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Silent redirect with timeout


Message #1 by "Dennis Putnam" <dap1@m...> on Thu, 5 Dec 2002 16:01:52
Here are two ways to automatically transfer visitors to another page.

   1. The first method, (and the method I prefer) is by using a meta tag.
Yes, meta tags have functions other than marketing. It will look like this:

      <META HTTP-EQUIV=REFRESH CONTENT="10;URL=http://domainname.com/page.htm">

      The number "10" represents the number of seconds before the page will
be transferred. Insert the destination address in the designated location.


   2. The second method is javascript. All you have to do is cut and paste
the following code:

      <script language="JavaScript" type="text/javascript"> <!-- var time =
null function move() { window.location = 'http://destination.com' } //-->
</script> </head> <body onload="timer=setTimeout('move()',5000)">

      Change "http://destination.com" to your destination page. The number
"5000" represents the number of milliseconds before the page will be
transferred. (1000 milliseconds equals one second).



> Although I have done a fair amount of HTML programming it has thus far 
b> een the simple text and image stuff. Now I am getting into a new area for 
w> hich I guess I need to use META tags.

> What I would like to do is create a silent redirect tag that will display 
a>  local page if the 'redirectee' does not respond. In other words, if 
t> he 'redirectee' is down I want the 'redirecter' to display an error page.

> Is this possible? If so how? TIA.

  Return to Index