Kenjun

November 16, 2007

HTML Meta Redirect

Filed under: html — kenjun @ 3:20 am

To redirect to a new page

<meta http-equiv=”refresh” content=”3;url=http://www.kenjun.com/blog”>

In the content attribute, we have “3;url=http://www.kenjun.com/blog”

the number is the time, in seconds, before the page is redirected. Then, separated by a semi-colon (;) is the URL to be loaded.

Meta refresh tags usability problems

  • If the redirect happens quickly (less than 2-3 seconds), readers with older browsers can’t hit the “Back” button.
  • If the redirect happens quickly and goes to a non-existent page, your readers won’t be able to hit the “Back” button.

Blog at WordPress.com.