JSObject.getMember() (Java method)

Returns the value of a named property of the object belonging to a JavaScript object to a calling in the Java environment.


JavaScript - 1.1
Netscape - 3.0
Property/method value type:Object object
Java syntax:myJSObject.getMember("aMemberName")
Argument list:aMemberNameThe name of a property belonging to the JSObject

As you read properties of JSObjects, you get more JSObjects returned. In this way, you can walk the document hierarchy to locate any item in the window referred to by the root JSObject.

The return values will conform to the following conversions as they are passed between the environments:

boolean primitivejava.lang.Boolean
number primitivejava.lang.Double
string primitivejava.lang.String
JavaObject objectThe encapsulated Java object unwrapped
all other JavaScript objectsnetscape.javascript.JSObject

The result of this method call will be an Object object which needs to be cast to some other value for use in the Java environment.

See also:JavaScript to Java values, JSObject object, LiveConnect