clearInterval() not working [duplicate] setInterval returns an ID which you then use to clear the interval.