Javascript stop setInterval

70

Stop setInterval call in JavaScript -

var refreshIntervalId = setInterval(fname, 10000);
/* later */
clearInterval(refreshIntervalId);
// See the docs for setInterval() and clearInterval()

Comments

Submit
0 Comments