There are three ways to achieve this: you can use the JavaScript function setTimeout() to schedule the task to be performed at a later time, you can use the JavaScript function setInterval() to schedule the task to be performed at a later time, or you can use the JavaScript function setTimeout() to schedule the task to be performed at a later time.
The third way is the best way.