JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

JSObject.getWindow() Java Method

Name

JSObject.getWindow() Java Method---return initial JSObject for browser window

Availability

Part of the netscape.javascript package included with Navigator 3.0

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 will call. 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.

See Also

"JSObject", Chapter 19, LiveConnect: JavaScript and Java


Previous Home Next
JSObject.getSlot() Book Index JSObject.removeMember()

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
Hosted by uCoz