[Window Object]
Definition and Usage
The clearTimeout() method clears a timer set with the setTimeout() method.
The ID value returned by setTimeout() is used as the parameter for the clearTimeout() method.
Syntax
clearTimeout(id_of_settimeout)ExampleThe following example has a "Start count!" button to start a timer, an input field that will count forever, and a "Stop count!" button that will stop the timer:
|