...

View Full Version : Redirect after a certain amount of time



steveg
02-26-2003, 10:01 AM
I need to display a message on screen then redirect to a different url after a certain amount of time, say 10 seconds.

Does anyone know of an easy way to do this ?

Thanks

Steve.

Borgtex
02-26-2003, 10:21 AM
Use the meta refresh:

<meta http-equiv="refresh" content="10;URL=newpage.htm">

bfsog
02-26-2003, 10:24 AM
<head>
<meta http-equiv="Refresh" content="5;url=http://www.google.co.uk">
</head>

put it in the head, the 5 is how many seconds you want it to wait.

steveg
02-26-2003, 10:37 AM
Its running on an asp page and I need it to redirect to one page if a condition is met or another page if its not.

it need to be something like this

if a = true then
to page 1
<wait 10 seconds>
redirect to page 1
else

steveg
02-26-2003, 10:39 AM
Its running on an asp page and I need it to redirect to one page if a condition is met or another page if its not.

it need to be something like this

if a = true then
to page 1
<wait 10 seconds>
redirect to page 1
else
to page 2
<wait 10 seconds>
redirec to page 2
end if


thanks

Steve.

Borgtex
02-27-2003, 04:38 PM
well, you can use javascript:

if (condition) setTimeout("self.location='thepage.htm'",10*1000)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum