Window JavaScript Tutorial

Syntax

window.setInterval(expression, milliseconds)
    window.setInterval(function, milliseconds)
    window.setInterval(function, milliseconds, arg1, ..., argN)
The setInterval() method sets an interval to invoke the expression or function that is passed to the method.
The expression or function is invoked after every elapse of the milliseconds passed.
This interval can be cleared by using the clearInterval() method.