| Alarm Clock | | This shows how to have a simple alarm clock.
It uses setInterval to count the clock seconds and re-determine the current time.
When the hours, minutes, and seconds match the current to the alarm times and the alarm has been set - the alert() method is called to send you the ALARM.
|