This is a little program I use to time cookies (the oven baked kind) because I can't hear the stove's timer from where my PC is. I was wondering if there is a way that I can play a sound wav as an alarm instead of the popup alert.
Code:<html> <head> <script> function countdown(){ x=frmcountdown.counter.value; x--; frmcountdown.counter.value=x; if (x>0){ setTimeout("countdown()",1000); } else{ alert("Cookies are done!"); } } </script> </head. ><body> <form name="frmcountdown"> <input type="text" name="counter" size="3" value=720 /> <input type="button" value="start" onclick='setTimeout("countdown()",1000);'> <input type="reset" value="reset"> </form> </body> </html>


Reply With Quote
Bookmarks