FrontPage Forums
FrontPage How-To Articles
Website Design Articles
Software & Book Store
Newsletter <- Sign up here!
Website Links
About WebWorkshop.org
FrontPage How-To Articles
    
Is there a setting I can use that will automatically redirect the users to a different page after a few seconds?
    
There may be times when you'll want to redirect the visitor without their interaction. For example, if you have two versions of your website, one with frames and one without, and have a link on your home page asking the user to choose one, you might want to automatically redirect them to the non-frames version if they don't click something after 5 seconds.

Usually you edit the HTML code to add a REFRESH metatag, but there's an easier way to do it in FrontPage.

  • Open the page that will be doing the redirection (usually your home page).
  • Choose File > Properties..., then click the Custom tab.
  • The Custom properties area has two sections: a "System variables (HTTP-EQUIV)" at the top, and a "User variables" at the bottom. We want to the System variables.
  • Click the "Add..." button in the System variables area.
  • You should now have the "System Meta Variables (HTTP-EQUIV)" dialog box open. This box has two input fields, Name and Value.
  • In the name field, type: REFRESH
  • In the Value field (this is a little tricky), type the number of seconds to wait before redirecting, then a semicolon, then "URL=" (without the quotes), then the URL (page address) of the page you want to redirect to. The URL can be relative (like "index2.htm"), or verbose (like "http://www.yoursite.com/index2.htm"). For example, if I wanted to redirect the user to a page in my website called "index2.htm" after 5 seconds, the line would look like this:

5;URL=index2.htm

  • If you want to redirect the visitor immediately after the page loads, use a value of 0 for the number of seconds. Below is an example of what the System Meta Variables (HTTP-EQUIV) dialog box looks like. In this example, it redirects the visitor to the WebWorkshop home page immediately after the page loads.

<Back to table of contents>

   
Notice: Although every effort has been made to ensure that the information here is correct, be advised that what works on one computer system may not work on another. Use the information you find here at your own risk! WebWorkshop.org and its affiliates are not responsible for any damage or loss due to use (or misuse) of information found here.
   
Copyright ©2001-2004 WebWorkshop.org, all rights reserved
No part of this document may be reproduced without permission from WebWorkshop.org
   
Web Hosting provided by
Intelligent Hosting