
Meta RefreshAnother technique for redirecting people to new pages is using a special meta tag, "meta refresh," within the head section of your HTML document. The browser will read this meta tag and follow the instructions within the tag. This technique is normally used to accomplish two tasks:
Therefore, we recommend you include a message in the body of your HTML document saying that the page has moved and you will be redirected to the new site in n seconds, whatever n happens to be. See We've Moved as an example. Syntax is:
where
For example,
tells the browser to load http://www.utexas.edu/its/ 10 seconds after the current document has finished loading. This may not be supported by all browsers, so put a "we've moved" message in your document as shown above. Also, since some search engines may penalize pages that refresh after a few seconds or less, you should use 5 or more seconds. Advantages
Disadvantages
More Information
|