Javascripts > Javascript Clocks > Countdown Timer
Script Title: Countdown Timer
Description: This script will count down from a set time and will stop when it reaches zero. Very useful and easy to use for sites where a redirection is necessary.
Example: Available
Copy the following code between the <BODY></BODY> tags of your html page.<form name="counter"><input type="text" size="8" name="d2"></form> <script> <!-- // var milisec=0 var seconds=30 document.counter.d2.value='30' function display(){ if (milisec<=0){ milisec=9 seconds-=1 } if (seconds<=-1){ milisec=0 seconds+=1 } else milisec-=1 document.counter.d2.value=seconds+"."+milisec setTimeout("display()",100) } display() --> </script>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email