Definition and usage of the jsclearInterval () method _ javascript tips-js tutorial

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.