Form.setInterval

Method of Form

New in package 166

Description

Calls a function repeatedly, with a fixed time delay between each call to that function.

Syntax

var intervalID = Form.setInterval( func, delay );

Parameters

Parameter Description
intervalID Unique interval ID you can pass to Form.clearInterval
func Function you want to be called repeatedly
delay Number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func. As with Form.setTimeout, there is a minimum delay enforced.

Example

Example 1: In this example, field control 'clock' will display current time and change seconds.

See also

Form.clearInterval, Form.setTimeout, Form.clearTimeout

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.