Timer Events Demo : Timer : Development JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Development » Timer »

 

Timer Events Demo




/*
JavaScript Unleashed, Third Edition
by Richard Wagner and R. Allen Wyke 

ISBN: 067231763X
Publisher Sams CopyRight 2000

*/


<head>
<script language="JavaScript">
<!--
     function dailyTask() {
       var tdy = new Date();
       if ((tdy.getHours() == 8&& (tdy.getMinutes() == 30)) {
           alert('Good morning sunshine!')
           clearInterval(timerID)
        }
     }
   
//-->
   
timerID = setInterval('dailyTask()', 10000)
   
</script>
</head>

           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Development
» Timer