Excerpt |
---|
clearTimeout() can stop the running timer based on the variable. Below code shows the simple example to stop running timer. |
Code Block | ||
---|---|---|
| ||
myVar = setTimeout(function, milliseconds); clearTimeout(myVar); |
...
Excerpt |
---|
clearTimeout() can stop the running timer based on the variable. Below code shows the simple example to stop running timer. |
Code Block | ||
---|---|---|
| ||
myVar = setTimeout(function, milliseconds); clearTimeout(myVar); |
...