Clearing All setIntervals

After long holidays, my inbox was filled with chattyfig mailing list. It’s 6704 mails unread. Wow.

Anyways, I looked at one nice trick to turn off all the intervals which was contributed by Mike Mountain and Kamyar Nazeri.


function clearAllIntervals() {
var topID = setInterval(function () {
}, 100);
for (i=0; i

Since setInterval increments to a higher number, you can delete intervals 0 through the last interval id.

  • Trackback are closed
  • Comments (3)
    • zzun
    • January 5th, 2004 8:25pm

    ? interva id ? ?? ° ?µ…

    ? ??;;

    ? ε û ?????

    • shinstudio
    • January 6th, 2004 12:58am

    ? ?? þµ ?.. ????.. .

    • block popup
    • June 25th, 2004 2:01pm

    Interesting thoughts, just wanted to mention I came from blogspot.

Comment are closed.