[Chapter 21] Reference: JSObject.getMember()
Author: David Flanagan
Date: Fri Aug 29 11:17:04 1997

#

| Chapter 21 JavaScript Reference |

# JSObject.getMember() Java Method

## Name

JSObject.getMember() Java Method---read a property of a JavaScript object

## Availability

Part of the netscape.javascript package included with Navigator 3.0

## Synopsis

    public Object getMember(String name)

### Arguments

`name`

  The name of the property to be read.

### Returns

A Java Object that contains the value of the named property of the specified JSObject.

## Description

The `getMember()` method of the Java JSObject class reads and returns to Java the value of a named property of a JavaScript object. The return value may be another JSObject object, or a Double, Boolean, or String object, but is returned as a generic Object, which you must cast as necessary.

## See Also

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

JSObject.eval() |  | JSObject.getSlot()