Code Snippet
Meta Refresh
The redirects to the provided URL in 5 seconds. Set to 0 for an immediate redirect.
<meta http-equiv="refresh" content="5;url=http://example.com/" />
The redirects to the provided URL in 5 seconds. Set to 0 for an immediate redirect.
<meta http-equiv="refresh" content="5;url=http://example.com/" />
This will only work if it is enabled in the browser settings. I belief it’s enabled by default but don’t depend on it.
To be sure, always use a “Click here if it does not redirect in 5 seconds”-link.
Can you tell me were you can disable meta tag(s) in your browser settings? :)
Very easy. If you use Internet Explorer.
I always use Firefox. But you’ve got to keep in mind that it is possible to disable meta refreshes. That’s why most sites have the “Click here to continue” or “Click here if it does not forward” links.
En by the way, even while I’m using Firefox, I prefer those links. Most of the times it’s faster to click that link than to wait for their timer to finish and forward.
Ok, but I think nobody will disable meta tags manually in their browser settings if they do not have special reason for it. In some cases you can not use url redirect(“click here”) or server side code, so this one comes useful.
If someone has meta refresh disabled then I suggest people should use:
- k0st4s
>?php header( “refresh:5;url=YOUR URL” );<
DigWP
A book and blog co-authored by Jeff Starr and myself about the World's most popular publishing platform.
Quotes on Design
Design, like Art, can be an elusive word to define and an awfully fun thing to have opinions about.
HTML-Ipsum
One-click copy to clipboard access to Lorem Ipsum text that comes wrapped in a variety of HTML.
Bookshelf
Hey Chris, what books do you recommend? These, young fertile mind, these.