You are here: irt.org | FAQ | JavaScript | Date | Q1203 [ previous next ]
Try:
<script language="JavaScript"><!-- function tick() { if (document.myForm.myCount.value > 0) { --document.myForm.myCount.value; setTimeout('tick()',1000); } } //--></script> <body onLoad="tick()"> <form name="myForm"> <input type="text" name="myCount" value="10"> </form>