Availability
Netscape 3, Internet Explorer 4
Synopsis
public Object call(String methodName, Object args[])Arguments
methodName
The name of the JavaScript method to be invoked.args[]
An array of Java objects to be passed as arguments to the method.
Returns
A Java object that represents the return value of the JavaScript
method.
Description
The call( ) method of the Java JSObject class
invokes a named method of the JavaScript object represented by the
JSObject. Arguments are passed to the method as an array of Java
objects, and the return value of the JavaScript method is returned as
a Java object.
Chapter 22 describes the data conversion of the
method arguments from Java objects to JavaScript values and the
method return value from a JavaScript value to a Java object.
•
Table of Contents
•
Index
•
Reviews
•
Examples
•
Reader Reviews
•
Errata
JavaScript: The Definitive Guide, 4th Edition
By
David Flanagan
Publisher
: O'Reilly
Pub Date
: November 2001
ISBN
: 0-596-00048-0
Pages
: 936
Slots
: 1
This fourth edition of the definitive reference to
JavaScript, a scripting language that can be embedded
directly in web pages, covers the latest version of the
language, JavaScript 1.5, as supported by Netscape 6 and
Internet Explorer 6. The book also provides complete
coverage of the W3C DOM standard (Level 1 and Level 2),
while retaining material on the legacy Level 0 DOM for
backward compatibility.