"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">



Print This Tip

Get E-Mail When New Tips are Online

Return to the Web Development - Misc. page.

 


New in MalekTips:

RSS Feeds- Subscribe!

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Get Tips!'.
 


( sample / details )
( opt-out instructions )