Name

Window.clearInterval( ) — stop periodically executing code

Availability

JavaScript 1.2

Synopsis

                  window.clearInterval(intervalId)

Arguments

intervalId

The value returned by the corresponding call to setInterval( ).

Description

clearInterval( ) stops the repeated execution of code that was started by a call to setInterval( ). intervalId must be the value that was returned by a call to setInterval( ).

Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.