About 53 results
Open links in new tab
  1. How to create a simple JavaScript timer? - Stack Overflow

    Jul 22, 2015 · Learn how to create a simple JavaScript timer with step-by-step guidance and examples for beginners on Stack Overflow.

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

    Apr 30, 2015 · How can I create an accurate timer? Use the Date object instead to get the (millisecond-)accurate, current time. Then base your logic on the current time value, instead of counting how often …

  3. Is there any way to call a function periodically in JavaScript?

    Aug 3, 2009 · The setInterval() method, repeatedly calls a function or executes a code snippet, with a fixed time delay between each call. It returns an interval ID which uniquely identifies the interval, so …

  4. Is there a more accurate way to create a Javascript timer than ...

    Therefore, one timer that handles all pending tasks for that interval will perform better than two timers with coinciding intervals, and (for short timeouts) better than two timers with overlapping timeouts! …

  5. How to write a countdown timer in JavaScript? - Stack Overflow

    Just wanted to ask how to create the simplest possible countdown timer. There'll be a sentence on the site saying: "Registration closes in 05:00 minutes!" So, what I want to do is to create a s...

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

    Jul 28, 2009 · I want to use a simple countdown timer starting at 30 seconds from when the function is run and ending at 0. No milliseconds. How can it be coded?

  7. plain count up timer in javascript - Stack Overflow

    I am looking for a simple count up timer in javascript. All the scripts I find are 'all singing all dancing'. I just want a jQuery free, minimal fuss count up timer that displays in minutes and se...

  8. javascript - Calling a function every 60 seconds - Stack Overflow

    setTimeout(function, 60000); But what if I would like to launch the function multiple times? Every time a time interval passes, I would like to execute the function (every 60 seconds, let's say).

  9. How to create a stopwatch using JavaScript? - Stack Overflow

    Dec 2, 2013 · Timers in javascript are usually setup by creating Date objects at particular moments. You can then subtract Dates to get the difference in milliseconds. But it seems you know that. What …

  10. 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.