• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Client-Side Browser Syntax > window.setInterval()

window.setInterval()

JavaScript1.2+, JScript3.0+ Nav4+, IE4+ Syntax

							window.setInterval(expression, milliseconds)
							window.setInterval(function, milliseconds)
							window.setInterval(function, milliseconds, arg1, …, argN)
						

Description

The setInterval() method of the Window object 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. As shown in the syntax definition, it is possible to pass arguments to the function you want to invoke. This interval can be cleared by using the clearInterval() method.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint