0

How do I add alarm to Digital web clock with JavaScript?

Digital web clock

21st Nov 2022, 1:08 PM
Mayor Pheelix
Mayor Pheelix - avatar
1 Resposta
+ 1
What kind of alarm you need? You may add popup notification and/or sound using js, when is right hours. But if user close window this wont work, maybe it could be done with cookies but i dont have experience with this. To add alarm, for example when is some hour and minute like 9:30pm you should check current time if it match alarm time if so you may show notification or play sound.
21st Nov 2022, 4:05 PM
PanicS
PanicS - avatar