setInterval method

Calls a callback function after every delay in milliseconds has elapsed.

Note  These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.

 

 

Syntax

DiagnosticsGlobalScope.setInterval(callback, timeout);

Parameters

  • callback [in]
    Type: Function

    Function to call back.

  • timeout [in]
    Type: number

    Delay in milliseconds.

Return value

This method does not return a value.

See also

DiagnosticsGlobalScope