Chapter 76. Automatically Redirecting the Browser

In Topic 75, you saw how to use a meta tag to set an automatic refresh cycle. The syntax of the meta tag looked like this:

<meta http-equiv="refresh" content="x,#">

FAQ

If I use a refresh meta tag to do a redirect, doesn't the redirect behavior happen again and again?

Not necessarily. After the browser jumps to the new page, the previous page's meta tag no longer applies. If the new page doesn't have a redirect on it, the browser stays put. Of course, if the new page does have a redirect on it, then the browser waits the required number of seconds and jumps again.

where x represents the number of ...

Get Web Design Garage now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.