Meta refresh

From Wikipedia, the free encyclopedia

Meta refresh is an HTML meta tag used to specify a time-interval (in seconds) after which a web browser should automatically refresh the current webpage.

By including an alternative URL it is also possible to use this tag as a method of redirection; by instructing the browser to fetch an alternative resource when the page is refreshed. This is considered by the W3C to be a poor method of redirection, since it does not communicate any information about either the original or new resource, to the browser (or search engine). The W3C's Web Content Accessibility Guidelines (7.4) discourage the creation of auto-refreshing pages, since most web browsers do not allow the user to disable or control the refresh rate.

[edit] Examples

<!-- Refresh page after 10 seconds -->
<meta http-equiv="refresh" content="10" />
<!-- Redirect to another webpage/website after a given time period (in this case 10 seconds) -->
<meta http-equiv="refresh" content="10;url=http://www.wikipedia.org/" />

[edit] References