2018-10-16 21:32:40 +05:30

762 B

title
title
Window clearInterval Method

Window clearInterval Method

The 'clearInterval()' method is used to clear a timer set with the 'setInterval()' method.

    clearInterval(setInteval_ID); 

To be able to use the 'clearInterval()' method, you must use a global variable.

    myID = setInterval(function, milliseconds); 

More Information:

Documentation: MDN

Some more examples on w3schools