javascript how to break setinterval function code example
Example: setinterval break
var refreshIntervalId = setInterval(fname, 10000);
/* later */
clearInterval(refreshIntervalId);
var refreshIntervalId = setInterval(fname, 10000);
/* later */
clearInterval(refreshIntervalId);