Name
JSObject.getWindow( ) — return initial JSObject for browser window
Availability
Netscape 3, Internet Explorer 4
Synopsis
public static JSObject getWindow(java.applet.Applet applet
)
Arguments
-
applet
An Applet object running in the web browser window for which a JSObject is to be obtained.
Returns
A JSObject that represents the JavaScript Window object for the web
browser window that contains the specified
applet
.
Description
The getWindow( )
method is the first JSObject
method that any Java applet calls. JSObject does not define a
constructor, and the static getWindow( )
method
provides the only way to obtain an initial “root”
JSObject from which other JSObjects may be obtained.
Get JavaScript: The Definitive Guide, Fourth Edition 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.