With JavaScript, it is possible to execute some code at specified time-intervals. ... The setInterval() method will wait a specified number of milliseconds, and then ...
www.w3schools.com