[Prev: parseInt()] [Home] [Next: Built-in Operators]
var timerId = startTimer( interval, timeoutFunction )
Creates a new timer. The timer's id is returned, although it isn't needed if you use killTimers(). The timer will call the timeoutFunction every interval milliseconds.
Typically startTimer() is called in a form's init() function, with the timeoutFunction declared as a slot within the form.
For forms which use timers, it is good practice to create a destroy() function that contains a killTimers() statement.