Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect

Status
Not open for further replies.

Jusenkyo

Programmer
Aug 16, 2002
295
GB
Hello all

Really simple one here... I want to redirect people from one page to another, after a set amount of time...

Javascript maybe?

How do I do it, and where would I put the code?

Anyone?
Cheers
Jusenkyo

(And yes, I have tried to search for the answer before posting!)
 
This sample is set to redirect in 15 seconds and you can change it to whatever you want


<HEAD>
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>

redirTime = &quot;15000&quot;;
redirURL = &quot;your_page.asp&quot;;
function redirTimer() { self.setTimeout(&quot;self.location.href = redirURL;&quot;,redirTime); }
</script>

<BODY onLoad=&quot;redirTimer()&quot;>
...


pinky1.jpg width='75' height='75'
[/tt]
056.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top