Is there any JavaScript method similar to the jQuery delay() or wait() (to delay the execution of a script for a specific amount of time)?
delay()
wait()
You can also use window.setInterval() to run some code repeatedly at a regular interval.