Frame.setInterval()

JavaScript 1.2+, JScript 1.0+ Nav4+, IE 3+ Syntax

							frame.setInterval()

Description

The setInterval method of the Frame object is used to schedule a function for repeated execution. It takes two parameters. The first parameter is the expression being executed. The second parameter is the time in milliseconds that elapses before the expression is executed again. The function being executed is stopped by calling the clearInterval method.

Example

Listing 7.284 shows a simple example of a setInterval method call. For a more detailed example, see window.setInterval.

Listing 7.284 Example of setInterval() Method Call
 <script language="JavaScript"> <!-- Hide Frame.setInterval(document.write('Begin writing", 50); // End ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.