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

create a countup clock

Status
Not open for further replies.

martinb7

Programmer
Jan 5, 2003
235
GB
Hi, how would you make a countup clock in javascript that starts at 0 and when it gets to a certain time like 1 hour later, does something??

thanx

Martin

Computing help and info:

 
you'll have to define "does something"

here is a timer that shows an alert after one hour:
Code:
window.setTimeout("alert('something!');", 60*60*1000);

=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top