Browser provides a built-in scheduler which allows to setup function calls for execution after given period of time.
Internally, the browsers are event-driven. Most actions occur asynchronously and create an event which is appended to the queue.
They are taken from the queue and processed when the time permits. For example:
The content of this site is available under the terms of CC BY-NC-SA.
© Ilya Kantor, 2011.