HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

setTimeout

Description

The setTimeout of WindowOrWorkerGlobalScope for JS schedules a timeout to run handler after timeout milliseconds. Any arguments are passed straight through to the handler.

Schedules a timeout to compile and run code after timeout milliseconds.

Syntax

id = self.setTimeout(handler [, timeout [, ...arguments ] ])
id = self.setTimeout(code [, timeout ])

Parameters

handler

The function callback handler.

timeout

The amount of time in milliseconds until the event occurs.

arguments

The values sent to the function.

code

The set of rules.

Examples

1 · handler

2 · timeout

3 · arguments

4 · code

5 · timeout