How to end set interval javascript code example
Example: setinterval break
var refreshIntervalId = setInterval(fname, 10000);
/* later */
clearInterval(refreshIntervalId);
var refreshIntervalId = setInterval(fname, 10000);
/* later */
clearInterval(refreshIntervalId);