SyntaxFix
Write A Post
Hire A Developer
Questions
You can use setTimeout or setInterval.
setTimeout
setInterval
The difference is - setTimeout triggers your function only once, and then you must set it again. setInterval keeps triggering expression again and again, unless you tell it to stop