762 B
762 B
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