Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Stop setInterval call in JavaScript

var refreshIntervalId = setInterval(fname, 10000);
/* later */
clearInterval(refreshIntervalId);
// See the docs for setInterval() and clearInterval()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Stop #setInterval #call #JavaScript
ADD COMMENT
Topic
Name
7+5 =