Forum Moderators: open

Message Too Old, No Replies

send back home

after thank you page from form submission

         

stef25

8:50 pm on May 24, 2004 (gmt 0)

10+ Year Member



after visitors submit a form they reach a thank you page. after 5 sec on that page i want to auto redirect them back home ...

im sure there is a simple way of doing this?

big thx
s

Alternative Future

9:33 pm on May 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi stef25,

Would the use of the meta tag do what you are after?
<meta http-equiv="refresh" content="5;url=home.html">

Or you could do it with JavaScript using history() depending on what page you were intending on redirecting the user too!
<script language=javascript>
setTimeout("redirect()",5000);
function redirect(){
history.go(-1);
}
</script>
-1 will return the user back one page (in your instance to the actual form) -2 will return the user back to the page they entered the form from (hope that makes sense)

-George

stef25

10:02 pm on May 24, 2004 (gmt 0)

10+ Year Member



yep the meta tag did the job

thanks v much!