| advertise add site services publishers database health videos | ![]() | about toolbar stats live show health store more stuff JOIN/LOGIN |
CodeAve.com(Meta Refresh) calbia.org | HTML META tag refresh promedmail.org | Meta I3C Indole3Carbinol by Metagenics: Meta I3C Indole3Carbinol 60... acuatlanta.net | Meta Analysis | Wellness Questionnaire and Meta Analysis eternity-medicine.com |
Meta refresh is a method of instructing a web browser to automatically refresh the current web page or frame after a given time interval, using an HTML meta element with the http-equiv parameter set to "refresh" and a content parameter giving the time interval in seconds. It is also possible to instruct the browser to fetch a different URL when the page is refreshed, by including the alternative URL in the content parameter. By setting the refresh time interval to zero (or a very low value), this allows meta refresh to be used as a method of URL redirection. This method is deprecated and should not be used.
[edit] UsabilityUse of meta refresh is discouraged by the W3C, since unexpected refresh can disorient users[1]. Meta refresh also impairs the web browser's "back" button in some browsers (including Internet Explorer 6 and before), although most modern browsers compensate for this (Mozilla Firefox, Opera, Internet Explorer 7). Alternatives to meta refresh include JavaScript, or HTTP redirection headers such as HTTP 301. [edit] ExamplesPlace inside <head> to refresh page after 5 seconds: <meta http-equiv="refresh" content="5" /> Redirect to <meta http-equiv="refresh" content="5;url=http://example.com/" /> Redirect to <meta http-equiv="refresh" content="0;url=http://example.com/" /> [edit] DrawbacksMeta refresh tags have some drawbacks:
[edit] AlternativesAlternatives exists for both uses of the [edit] For redirectionA 301 or 302 HTTP redirect is the preferred way to redirect a user agent to a different page. This can be achieved by a special rule in the web server (such as Javascript is another alternative, but not recommended because users might have disabled Javascript in their browsers. [edit] For refreshThe recommended way is to provide an interaction device, such as a button, to let the user choose when to refresh the content. Another option is using a technique such as Ajax to update (parts of) the website without the need for a complete page refresh, but this would also require that the user has Javascript. [edit] References
[edit] External links |
| ↑ top of page ↑ | about thumbshots |