By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,382 Members | 1,623 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,382 IT Pros & Developers. It's quick & easy.

timed redirect to another page

P: n/a
FN
I know how to do an HTML content redirection (e.g. in 5 seconds you'll be
redirec to...) but...

I have a javascript countdown timer. It goes for a few hours. At the end,
I want to dispaly "times up", wait 10 more seconds, and then redirect to
another page. Is there a javascript way to do this, and would it work
going back to IE4 and NN4.5?
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
FN wrote on 11 jul 2003 in comp.lang.javascript:
I have a javascript countdown timer. It goes for a few hours. At the
end, I want to dispaly "times up", wait 10 more seconds, and then
redirect to another page. Is there a javascript way to do this, and
would it work going back to IE4 and NN4.5?


url="http://cnn.com/"
setTimeout("location.href=url",10000)

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2

P: n/a
FN

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
FN wrote on 11 jul 2003 in comp.lang.javascript:
I have a javascript countdown timer. It goes for a few hours. At the
end, I want to dispaly "times up", wait 10 more seconds, and then
redirect to another page. Is there a javascript way to do this, and
would it work going back to IE4 and NN4.5?


url="http://cnn.com/"
setTimeout("location.href=url",10000)

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Thanks. And if I wanted to refresh the page, can I just specify the same
page where you wrote "url" or is there a different command for refresh?
Jul 20 '05 #3

P: n/a
FN wrote on 12 jul 2003 in comp.lang.javascript:
url="http://cnn.com/"
setTimeout("location.href=url",10000)

Thanks. And if I wanted to refresh the page, can I just
specify the same
page where you wrote "url" or is there a different command for refresh?


"location.reload()"

or even

"location.href=location.href"
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.