Click the button below and then keep your eye on the status bar:
Here's the script:
The following line sets the length, in seconds, of the timer:
secs = 10
The code decreases the "secs" variable by 1 each second. When "secs" gets to 0, the clock is stopped and that's when you do whatever it is you want to do once the timer is done (such as display a message or send the user to another page).
In the example above, I use a simple form button to start the timer (it also displays the countdown in the status bar). You could also start the timer (that is, run the InitializeTimer() function) automatically by adding the following to the <BODY> tag:
Copyright © 1995 - 2013 Paul McFedries and Logophilia Limited