25.317. Window.setInterval( ): periodically execute specified codeJavaScript 1.2:25.317.1. Synopsiswindow.setInterval(code, interval) 25.317.1.1. Arguments
25.317.1.2. ReturnsA value that can be passed to Window.clearInterval( ) to cancel the periodic execution of code. 25.317.2. DescriptionsetInterval( ) repeatedly invokes or evaluates the function or string specified by code, at intervals of interval milliseconds. setInterval( ) returns a value that can later be passed to Window.clearInterval( ) to cancel the execution of code. setInterval( ) is related to setTimeout( ). Use setTimeout( ) when you want to defer the execution of code but do not want it to be repeatedly executed. See Window.setTimeout( ) for a discussion of the execution context of code. 25.317.3. See AlsoWindow.clearInterval( ), Window.setTimeout( ) |