Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

stopping setInterval

var refreshId = setInterval(function() {
  var properID = CheckReload();
  if (properID > 0) {
    clearInterval(refreshId); //this stops the setInterval
  }
}, 10000);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #stopping #setInterval
ADD COMMENT
Topic
Name
4+8 =