473,383 Members | 1,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

timed redirect to another page

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
3 10814
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul | last post by:
I'm not getting the results I want when I use Response.Redirct in a ASP page. I enter this line of code in a asp page from domain1.com. Response.Redirect...
2
by: T Conti | last post by:
Howdy: I have converted a huge ASP page over to .Net (C#). The old page has been will be removed from our site, but I need to have a dummy page there that will redirect the user to the new site...
2
by: Lloyd Sheen | last post by:
I have a problem which I would think would be a common one. If the user attempts to enter an ASP app in a screen which is not the logon (could get it from history), I want to be able to do the...
1
by: David | last post by:
I need to redirect to a page and HTTP Post data. The Response.Redirect does not work and the HTTPREQUEST option calls the page and waits for a response, but I need to transfer control to the...
4
by: Joe | last post by:
I'm hosting my web service on a Windows 2003 box which is remotely located. When trying to add a web reference to a C# project I get an error message 'There was an error downloading...
11
by: www.MessageMazes.com | last post by:
I sometimes get this error after about 60 seconds of "waiting for mazes.com" (but when the page works, it usually loads in less than 12 seconds). > Active Server Pages error 'ASP 0113' > Script...
0
by: Alex Papadimoulis | last post by:
Hey Group, I'm in the process of converting an ASP-based site to an ASP.NET site and built a control that wraps around an ASP page. The control simply does a GET to the same server to render the...
0
by: Alex Papadimoulis | last post by:
Hey Group, I'm in the process of converting an ASP-based site to an ASP.NET site and built a control that wraps around an ASP page. The control simply does a GET to the same server to render the...
56
by: UKuser | last post by:
Hi, I'm not sure if this can be done as I've searched the web and this forum. I am using an online merchant provider and I must post certain variables to their webforms through a form on my...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.