SyntaxFix
Write A Post
Hire A Developer
Questions
clearInterval is one option:
var interval = setInterval(doStuff, 2000); // 2000 ms = start after 2sec function doStuff() { alert('this is a 2 second warning'); clearInterval(interval); }