JavaScript berhenti setInterval
var myInterval = setInterval(function(){console.log("mmk")}, 2000);
clearInterval(myInterval); //stop that interval
Grepper
var myInterval = setInterval(function(){console.log("mmk")}, 2000);
clearInterval(myInterval); //stop that interval
var refreshIntervalId = setInterval(fname, 10000);
/* later */
clearInterval(refreshIntervalId);