Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt

clearTimeout() can stop the running timer based on the variable. Below code shows the simple example to stop running timer.


Code Block
languagejs
myVar = setTimeout(function, milliseconds);
clearTimeout(myVar);

...