Form.setTimeout

Method of Form

New in package 166

Description

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..

See also

Form.setInterval, Form.clearInterval, Form.clearTimeout

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