PDA

View Full Version : Redirection Script


Bengal313
10-16-2002, 09:45 PM
Hello everyone,
I need you help with something very simple to do, I think. I have a "under construction page" which says, " under construction, Click here to return to the main page"

What I want is to insert a piece of code that will show the underconstruction page for about 3 seconds and then redirect back the page that they came from.

beetle
10-16-2002, 09:48 PM
<script>
setTimeout("history.back()",3000);
</script>

Or, if you want to be sneaky and remove the construction page from the history....

<script>
setTimeout("top.location.replace(document.referrer);",3000);
</script>