About 2,890,000 results
Open links in new tab
  1. javascript - How can I use setInterval and clearInterval ... - Stack ...

    12 I used Angular with Electron. In my case, setInterval returns a Node.js Timer object. Which, when I called clearInterval(timerobject), did not work. I had to get the id first and call clearInterval: …

  2. javascript setInterval - Stack Overflow

    Oct 27, 2014 · a question. If i use setInterval in this manner: setInterval('doSome();',60000); am i safe that the doSome() function is triggered every 60 seconds, even if I change the tab in a browser?

  3. javascript - What's the difference between recursive setTimeout versus ...

    Nov 23, 2019 · For example, if we represent a call to setTimeout/setInterval with ., a firing of the timeout/interval with * and JavaScript code execution with [-----], the timelines look like:

  4. JavaScript setInterval and `this` solution - Stack Overflow

    JavaScript setInterval and `this` solution Asked 15 years, 7 months ago Modified 3 years, 6 months ago Viewed 52k times

  5. How does setInterval and setTimeout work? - Stack Overflow

    May 29, 2017 · Javascript is singled-threaded but the browser is not. The browser has at least three threads: Javascript engine thread, UI thread, and timing thread, where the timing of setTimeout and …

  6. How to start and stop/pause setInterval? - Stack Overflow

    I'm trying to pause and then play a setInterval loop. After I have stopped the loop, the "start" button in my attempt doesn't seem to work : input = document.getElementById("input"); funct...

  7. javascript - Refresh Page for interval using js - Stack Overflow

    Aug 20, 2012 · How can i refresh a page for every one minute using javascript. Note: I don't have control/option to edit HTML body tag (where we usually call onload function).

  8. How can I pause setInterval () functions? - Stack Overflow

    How do I pause and resume the setInterval() function using Javascript? For example, maybe I have a stopwatch to tell you the number of seconds that you have been looking at the webpage. There is a '

  9. Stop setInterval call in JavaScript - Stack Overflow

    Sep 8, 2020 · I am using setInterval(fname, 10000); to call a function every 10 seconds in JavaScript. Is it possible to stop calling it on some event? I want the user to be able to stop the repeated refresh o...

  10. javascript - How to exit from setInterval - Stack Overflow

    Nov 25, 2009 · How to exit from setInterval Asked 16 years, 1 month ago Modified 3 years, 11 months ago Viewed 133k times