PDA

View Full Version : how do you make a page redirect to another?



cupysmom
Jul 9th, 2001, 10:31 PM
I am making a page just for a recommend this site script. The script then redirects to a thank you page. What I wanting is for the thank you page to show for a moment and then automatically redirect visitiors back to my home page. How do I make this work? Is it a java script or cgi?
Thanks in advanced!
Sarah


Sarah's Slings (http://sarahsslings.com)

Tommy
Jul 10th, 2001, 04:44 AM
Hi Sarah,

There are a couple of ways to do this, here is an HTML example. Place the code within the HEAD.

META HTTP-EQUIV="refresh" CONTENT="5;URL=http://forums.webhostdir.com"

Change the 5 to the number of seconds you want the page to show before the refresh.

Remeber to add the < and > around the code. I had to take it out becuase it was refreshing the post!

Tommy:)

dbritt
Jul 10th, 2001, 06:57 AM
Hi

You can also use this script for redirects as well

<script>top.location.href="http://www.yourdomain.html"</script>


Hope this helps

Dale