<body onload=close()> <font id="ok">100</font> <script language="javascript"> var cnt=100; function close(){ if(cnt!=-1){ document.all["ok"].innerHTML=cnt; cnt--; setTimeout("close()",1000); } } </script>