This tip was printed from the MalekTips Computer and Technology Help and Tips website at http://malektips.com.

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


 


Press the "print" button on your browser or select "File" - "Print" to print this tip. Then, return to Web Development - Misc. - Take Visitors Somewhere Else
 
Standard disclaimer applies - read http://malektips.com/disclaim.html.