Relative Content

Tag Archive for javascripthtmlfunctionsetintervalclearinterval

clearInterval() function does not work fully. What is the reason?

clearInterval() stops the movingTab specified by setInterval(), but when startTimer() runs again, the tabInterval value is not 0 and is incrementing. What’s the problem? This issue doesn’t actually cause any serious problems with my functionality, but I’m curious as to why.