/

HTML / CSS / JavaScript Tutorial

JavaScript Window method: clearInterval()

[this page | pdf | back links]

The clearInterval() method (when applied to Window objects in the JavaScript BOM) clears a timer set using the setInterval() method.

 

It has the following syntax with the following parameters. It does not return a value.

 

window.clearInterval(id)

 

Parameter

Required / Optional

Description

id

Required

The id of the timer returned by the setInterval() method

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile