DekGenius.com
Team LiB   Previous Section   Next Section
JSObject.setMember( ) set a property of a JavaScript object

Availability

Netscape 3, Internet Explorer 4

Synopsis

public void setMember(String name, Object value)

Arguments

name

The name of the property to be set in the JSObject.

value

The value to which the named property should be set.

Description

The setMember( ) method of the Java JSObject class sets the value of a named property of a JavaScript object from Java. The specified value may be any Java Object. Primitive Java values may not be passed to this method. In JavaScript, the specified value is accessible as a JavaObject object.

    Team LiB   Previous Section   Next Section