HTML Cheat Sheet
HTML Help Forum
Link to us
The automatic redirect enables you to place a small code on your web page, and it will automatically go to another internet address in a set amount of time. The most common use of this script is when someone gets a new address for his or her web page. They can place a redirect code on there old site, so when visitors visit the old web site, it will automatically redirect to the new address.
How To Do It
There's 2 ways of redirecting, either automatically, or in a set amount of time, here's how to do both.
What this does
So instead, it will REPLACE the page, so when you hit the back button on your browser, it will send you to the last page you visited.
How to edit this code
Basically all you have to do is replace all 3 of the http://www.yournewsite.com to the actual address of the page your trying to redirect to.
Redirecting in a set amount of time
If you want to redirect in a set amount of time, you can use a meta refresh tag, like this.
<meta http-equiv="refresh" content="0; url=http://www.yournewsite.com">
Just replace the http://www.yournewsite.com with the actual address of the page you want to redirect to.
Next, change the 0 to the number of seconds you want it to take before the page refresh's.
For example, if you place a 10 in place of the 0, when you visit the page with this code on it, once the page loads, it will wait 10 seconds, and then refresh to the new address.
Note: If you are redirecting to a new web site, its a good idea to leave a message with your new internet address. The reason I say this is errors do come up, and just incase for some unknown reason the meta refresh tag doesn't work, you will have a message with a link to your new web site.
© 2001 TheHTMlSource.com, INC. All Rights Reserved.