SyntaxFix
Write A Post
Hire A Developer
Questions
Both setInterval and setTimeout can work for you (as @Doug Neiner and @John Boker wrote both now point to setInterval). See here for some more explanation about both to see which suites you most and how to stop each of them.
setInterval
setTimeout