Count down timer : Timer : Animation JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Animation » Timer »

 

Count down timer

















<html>
<head>
<title>A Simple Page</title>
<meta http-equiv="refresh" content="30">
<script language="JavaScript">
<!--
var x=30;
var y=1;
function startClock(){
    x=x-y;
    document.form1.clock.value = x;
    timerID=setTimeout("startClock()"1000);
}
//  -->
</script>
</head>
<body onload="startClock()">
<form name="form1">
<input type="text" name="clock">
</form>
</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Animation
» Timer