Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 함께 해서 번역을 마치도록 도와 주세요!

Cancels a timed, repeating action which was previously established by a call to setInterval().

Syntax

window.clearInterval(intervalID)

Parameters

intervalID
The identifier of the repeated action you want to cancel. This ID was returned by the corresponding call to setInterval().

It's worth noting that the pool of IDs used by setInterval() and setTimeout() are shared, which means you can technically use clearInterval() and clearTimeout() interchangeably. However, for clarity, you should avoid doing so.

Return value

undefined

Example

See the setInterval() example.

Specifications

Specification Status Comment
WHATWG HTML Living Standard
The definition of 'clearInterval()' in that specification.
Living Standard  

See also

문서 태그 및 공헌자

 최종 변경: Sheppy,