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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting a ASP page 1

Status
Not open for further replies.

stryan

Programmer
Feb 20, 2004
3
JM
I'v been stuck trying to redirect an asp page using VBScript after a few seconds, i'd realy appreciate if someone can solve it for me.
 
clientside or serverside?

server is

response.redirect ("somepage.extension")

Bastien

Any one have a techie job in Toronto, I need to work...being laid off sucks!
 
Server side , and i need it to delay for a few seconds
 
need to use client side then as you can't 'push' a page...now you need to decide if its js or vbs to fire the event...

JS is more universal VBS only works for IE

Bastien

Any one have a techie job in Toronto, I need to work...being laid off sucks!
 
[tt]Pretty much self explanatory

************************

<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>


<!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->

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



************************


The script redirects in 15 seconds

[tt]

buffalo.gif height="60px" width="30px"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top