https://developer.mozilla.org/en-US/docs/Web/API/clearInterval clearInterval() global function - Web APIs | MDN The global clearInterval() method cancels a timed, repeating action which was previously established by a call to setInterval(). If the parameter provided does not identify a previously established action, this method does nothing. developer.mozilla.org