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!

I need to pause / delay 1

Status
Not open for further replies.

davesmith

IS-IT--Management
Apr 2, 2001
31
IE
On an if statement ie. if not authorised user, i want to print to the screen, easy enough.
Then i want to redirect to another screen, again fairly easy.
But i want the person to be able to read the message, so i want to have a delay in there for say 3-5 seconds between writing and redirecting.
This is probably really easy, response.something but its a friday morning and my brain hasn't woken!!!

Thanks already

Dave
 
You can use the javascript, setTimeout like this:

setTimeout('location="somePage.asp";',5000);

That will first wait 5 seconds, and then redirect the page to whatever you specify --

:)
Paul Prewett
penny.gif
penny.gif
 
You can use also use the meta refresh tag, which is html

<meta http-equiv=&quot;refresh&quot; content=10;URL&quot;>

where 10 is the number of seconds that you wait and URL is the page that you redirect to. Make sure you use a semi-colon between the two and get them in the right order - that's the bit I always forget. dawn@soholondon.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top