The clearInterval () method can cancel the timer set by the setInterval () method. This article describes the definition and usage of the clearInterval () method. For more information, see. This method can cancel the timer set by the setInterval () method.
The parameter of this method must be the return value of the corresponding setInerval () method to be canceled.
Click here to see more properties and methods of window objects.
Syntax structure:
ClearInterval (id)
Parameter List:
| Parameters |
Description |
| Id |
Required. This id is the return value of setInerval (), which is the unique identifier of the setInerval () method. |
Browser support:
(1). IE browser supports this attribute.
(2). Firefox supports this attribute.
(3) operabrowser supports this attribute.
(4) chrome supports this attribute.
(5) The safria browser supports this method.
Code example:
ClearInterval () method of the window object-ant tribe