demosthenes.info

A blog by Dudley Storey on , , , , , , and anything else that strikes his fancy.

featured articles

popular favourites

Action meta tags

Meta tags can also be used to cause actions in the browser itself. The most common is the “refresh” meta tag, useful for having a page that is often updated auto-reload in the browser window (the index page of CNN.com being a good example) or to redirect the user to another page automatically (as when a site has moved from one URL to another, and you want people who bookmarked the old site to be automatically redirected to the site’s new location).

Again, the meta tag is written inside the <head> section of the document:

  1. <meta http-equiv="refresh" content="5;url=http://www.cnn.com" / >

The number immediately after the content is the number of seconds before the refresh takes place, following it after a comma is the URL to which the page will go. (If there is no URL placed here, the page will simply reload itself).

web developer guide

featured comment

by JoelB in Goodbye, JQuery Validation: HTML5 Form Errors With CSS3

what i'm reading

A Storm of Swords: A Song of Ice and Fire: Book Three
A Storm of Swords: A Song of Ice and Fire: Book Three

what i'm watching

Californication: The Third Season
Californication: The Third Season

what i'm playing

Mass Effect 3 Collector's Edition
Mass Effect 3 Collector's Edition

what i'm hearing

Dub FX
Dub FX

blogs

podcasts

no ads ever

This blog is free of advertising, and always will be.

creative commons licensed

The content of this blog is free to use in whatever way you wish under the Creative Commons license.