Method of Form
New in package 166Description
Executes a code snippet or a function after specified delay.
Syntax
var timeoutID = Form.setTimeout(func, delay);
Parameters
Parameter | Description |
---|---|
timeoutID | The ID of the timeout, which can be used later with Form.clearTimeout |
func | Function you want to execute after delay milliseconds |
delay | Number of milliseconds (thousandths of a second) that the function call should be delayed by |
Example
Example 1: Displaying alert message after 3 seconds..