0
How to stop login countdown timer in webpage
how to stop login countdown timer in webpage timer kill with JavaScript
2 ответов
+ 3
Timers set with setTimeout or setInterval could be canceled with respectively clearTimeout and clearInterval.
Both methods expect the timer identifier returned by the timer creator as argument:
var count = 5;
var interval_id = setInterval(function() {
console.log(--count);
if (count==0) clearInterval(interval_id);
},1000);
- 1
please send JavaScript writer WhatsApp number