I have been searching for a solution to this online, but haven't had any luck yet. I am in need of a simple JavaScript code (HH:MM:SS) that counts seconds upwards. My web application is ASP.NET with C#. I would like this count to start upon page load. The JavaScript should be able to do the following: - Change the background of the timer to yellow when it reaches 2 minutes - Change the background of the timer to red when it reaches 4 minutes - Play a .mp3 or wav file when it reaches 10 minutes
Can someone point me in the right direction? It doesn't have to be specifically done in JavaScript. If it can be achieved in C# ASP.NET, that works for me.
Thank you