JavaScript Window clearTimeout()
JavaScript Window clearTimeout()
The clearTimeout() method is used to clear a timer set with the setTimeout() method. Whenever we want a function to execute for once after a certain amount of time, we use the setTimeout() method.
Syntax:-
Its syntax is:- clearTimeout(id_of_setTimeOut)
Further Explanation:-
Parameter | Description |
id_of_setTimeOut | Required. The id returned by the setTimeout(). |