/

HTML / CSS / JavaScript Tutorial

JavaScript Window method: clearTimeout()

[this page | pdf | back links]

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

 

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

 

window.clearTimeout(id)

 

Parameter

Required / Optional

Description

id

Required

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

 


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


Desktop view | Switch to Mobile