Name

JSObject — Java representation of a JavaScript object

Availability

A Java class in the netscape.javascript package included with Navigator 3 and later

Synopsis

public final class netscape.javascript.JSObject

Methods

call(methodName, args[])

Invoke a method of a JavaScript object.

eval(s)

Evaluate a string of JavaScript code.

getMember(name)

Read a property of a JavaScript object.

getSlot(index)

Read an array element of a JavaScript object.

getWindow(applet)

Return initial JSObject for browser window.

removeMember(name)

Delete a property of a JavaScript object.

setMember(name, value)

Set a property of a JavaScript object.

setSlot(index, value)

Set an array element of a JavaScript object.

toString()

Return the string value of a JavaScript object.

Get Webmaster in a Nutshell, Second 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.