Event timers execute a specific action or a set of command in regular intervals based on the delay value.
id - Timer ID. This parameter is required and must have a unique value.
delay - Timer delay in seconds.
action - Action to execute. Can contain a URL, or one or more semicolon separated functions.
The minimum time delay is 1 second.
An event timer must have a unique id specified.
You can use timers to import data from XML files. This can be very useful to update real-time statistics such as stock quotes, Pay Per Click bids, news headlines etc. You can also use a timer to refresh the current page to prevent inactivity logouts.
Initially the action is executed for the first time after the specified time delay.
This example creates a timer to update a toolbar button caption with the current time. The caption is updated once every second.