About 85,400 results
Open links in new tab
  1. How to write a countdown timer in JavaScript? - Stack Overflow

    This would mean 6 minutes but treated as 5 minutes by this code. 3) The timer never shows 5:00 but instead shows 4:60, etc. 4) When the timer gets to 0 minutes and 60 seconds, the timer …

  2. javascript - Create a simple 10 second countdown - Stack Overflow

    Jun 29, 2015 · JavaScript timer functions all work in milliseconds, so you are going to have to work in milliseconds at some point in time in your code. – Ken Herbert Commented Jun 29, …

  3. Code for a simple JavaScript countdown timer? - Stack Overflow

    Jul 29, 2012 · Here is another one if anyone needs one for minutes and seconds: var mins = 10; //Set the number of minutes you need var secs = mins * 60; var currentSeconds = 0; var …

  4. How to create an accurate timer in javascript? - Stack Overflow

    Apr 30, 2015 · timer.stop(): Kills the timer immediately (and permanently). Returns the frame index for the next (cancelled) frame. timer.adapt(Number): Takes a frequency in Hertz and …

  5. html - How to create a simple JavaScript timer? - Stack Overflow

    Jul 22, 2015 · So, basically I am trying to create a simple JS timer that will start at 00:30, and go all the way to 00:00, and then disappear.

  6. javascript - Multiple countdown timers on one page - Stack Overflow

    Currently working on a project that requires two timers on one page. The timers need to have a start button and both have different timings (i.e. timer1 lasts 10 secs and timer2 lasts 20). …

  7. javascript - Simple clock that counts down from 30 seconds and …

    I have a game that gives a time limit and I need to display a countdown clock for the users and stop the game once the time is up such as 30 seconds. How can I do this in javascript?

  8. javascript countdown to next real 5 minutes - Stack Overflow

    Apr 22, 2013 · I need to create a javascript timer that will count down to the next 5 minutes. For example let's say the time is 00:07:30, the time will say 02:30 if the time is 15:42:00 the timer …

  9. Como fazer timer em JavaScript - Stack Overflow em Português

    May 15, 2016 · Preciso de ajuda para fazer um timer para uma página, e tem de ser diferente para cada dificuldade de um jogo, por exemplo, para o modo fácil tem 1 minuto, para o …

  10. javascript - How to stop and reset a countdown timer ... - Stack …

    Jan 31, 2020 · I need to display a countdown timer starting with 10. Whenever I click any button while it is running, the counter will reset again. The below function is working well but …