JavaScript » Window » clearInterval

Syntax:
window.clearInterval(intervalID)

This method is used to cancel a timeout previously set with the setInterval method.

Examples

Code:
var timerID = window.setTimeout("someFunc(...)", 1000);

...

window.clearInterval(timerID);