Frame.setTimeout()
JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax
frame.setTimeout()
Description
The setTimeout method of the Frame object is used to schedule a function for delayed execution. The method accepts two parameters. The first parameter is the function or expression being evaluated. The second parameter is a numeric value specifying the millisecond units that elapse before the function or expression is executed.
Example
Listing 7.285 shows a example of the setTimeout method being used to delay the printing of text.
Listing 7.285 Example of setTimeout() Method
<html> <title> Example of setTimeout method of the Frame object</title> <script language="JavaScript"> <!-- Hide document.bottom.setTimeout(document.bottom.print("Keep ... |
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.