setTimeoutsetTimeout*
*



Contents  *



Index  *Topic Contents
*Previous Topic: setInterval
*Next Topic: showHelp

setTimeout

Description

Evaluates an expression after a specified number of milliseconds has elapsed.

Syntax

timeoutID = object.setTimeout(expression, msec [, language])

ParameterDescription
expression (String) Code to be executed at the specified interval.
msec (Long) Numeric value or numeric string in millisecond units.
language Optional. (String) String that specifies the language in which the code is executed.

Return Value

Returns an identifier that is used only to cancel the evaluation with the clearTimeout method.

Applies To

window


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.