setInterval() (Method)

A method for setting timer intervals.


JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Property/method value type:Number primitive
JavaScript syntax:-myWindow.setInterval(aFunction, anInterval, someArguments)
-myWindow.setInterval(aSourceText, anInterval)
-setInterval(aFunction, anInterval, someArguments)
-setInterval(aSourceText, anInterval)
Argument list:aFunctionA function object (not supported in MSIE)
anIntervalA time interval in milliseconds
aSourceTextSome valid JavaScript source text
someArgumentsThe arguments to the function object (not supported in MSIE)

See also:Timer events, Window.clearInterval(), Window.setTimeout()

Refer to: