Answers for "js stopping interval"

1

stop interval js

clearInterval(interval)
Posted by: Guest on March-12-2021
0

stopping setInterval

var refreshId = setInterval(function() {
  var properID = CheckReload();
  if (properID > 0) {
    clearInterval(refreshId); //this stops the setInterval
  }
}, 10000);
Posted by: Guest on August-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language