setTimeout() method : Count Down « Page Components « JavaScript DHTML






setTimeout() method


<html>
<head>
<script type="text/javascript">
function timeout(){
    setTimeout("alert('Hi')", 1000)
}
</script>
</head>

<body>
<form>
<input type="button" onclick="timeout()" value="Count down">
</form>
</body>

</html>



           
       








Related examples in the same category

1.New Year's Count-Down Timer