Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 1,268   Yesterday: 1,015   Max: 1,872   Total: 464,321   Current Users : 19 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

META for Automatic Refreshing and Forwarding

You can use <META ...> to tell the web browser to automatically move to another web page, or refresh the current page, after a specified period of time.

To have the page automatically refresh itself every x seconds, use a tag like this:

this code
<META HTTP-EQUIV="REFRESH" CONTENT="5">

This tells the browser to refresh the page (HTTP-EQUIV="REFRESH"), and that it should do so every five seconds (CONTENT="5").

Suppose, however, that you want the page to refresh itself by going automatically to another page. This is common, for example, when someone has moved their home page to a new location, but want someone who goes to the old location to still find a pointer. You could put this <META ...> tag in the page at the old location:

this code produces this
<META 
     HTTP-EQUIV="Refresh"
     CONTENT="5; URL=autoforward_target.php">
this page

In this case the <META ...> tag works is like the first refresh example, only with a little added information. The first part is the same: CONTENT="5; URL=autoforward_target.php" tells the browser that the page should be refreshed. CONTENT="5; URL=autoforward_target.php" gives two pieces of information: that the page should refresh after five seconds, and that the new URL should be autoforward_target.php .

In a situation like this, you should also provide a regular link to the new page.



Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.