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

setInterval

Description

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

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

Syntax

id = self.setInterval(handler [, timeout [, ...arguments ] ])
id = self.setInterval(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