"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,820 tips!

Web Development - Misc.

Take Visitors Somewhere Else

One of the previous tips on MalekTips mentioned that you should never delete a webpage. Instead, create a referrer page so visitors going to one page will be automatically taken to another page. In case you need to do this, or if you can think of other reasons for taking users automatically from one page to another, here is how it is done.

This does not work on every browser! This tip, however, works on most versions of Netscape and Internet Explorer.

Between the <HEAD> and </HEAD> tags (yes, you should be using these to contain your <TITLE> and </TITLE> tags, you will be adding a new META tag. This META tag will work on most browsers to refresh them from one page to another. The format is:

<meta http-equiv="Refresh" content="seconds; URL=http://myurl">

seconds = the number of seconds to wait before the page redirects
myurl = the page to which you would like to redirect someone

So, for example, to redirect someone to the Envision Programming page in 5 seconds, here is the META tag that you will use.

<meta http-equiv="Refresh" content="5; URL=http://www.envprogramming.com">

Return to the Web Development - Misc. page.

Print this tip


Get the Newsletter

Thanks For Sharing!



Newest Tips:

Microsoft Word 2010
Make Sure Others Can See Your Fonts
Microsoft PowerPoint 2010
Animations or Video Displaying Poorly?
Google Chrome
[MODIFIED] Report a Malfunctioning Web Page, Crash, or Other Issue
Google Gmail
Show Unread Message Count as an Icon

Follow Us!

About MalekTips and the Author

The MalekTips website was created in 1998 by Andrew Malek of Envision Programming. The page's goal is to freely disperse computer-related tips, hints, and informative articles. Tips are organized to be easy to find, and are presented clearly, in easy-to-understand language. MalekTips also provides information and links to public-domain, open source, freeware, shareware, and commercial software available for download. < more >