Normally, I’d set the interval to a variable and then clear it like var the_int = setInterval(); clearInterval(the_int); but for my code to work I put it in an
var the_int = setInterval(); clearInterval(the_int);
the_int=window.clearInterval(the_int);