Possible Duplicate:
How can I clearInterval() for all setInterval()?
I called setInterval in my page, and I don’t have access to the original variable that setInterval was stored in, but I want to clear it from my page.
so how can i clear all timers present on a page?
Clear ALL the intervals!
You could probably tone down that max value of
iand still catch ’em all. The above code finished in my browser after only 12008757 milliseconds. That’s 3.3 hours, or ~179clearInterval()s per millisecond.