Availability
JavaScript 1.1
Synopsis
document.applets[i]document.appletName
Properties
The properties of an Applet object are the same as the public fields
of the Java applet it represents.
Methods
The methods of an Applet object are the same as the public methods of
the Java applet it represents.
Description
The Applet object represents a Java applet embedded in an HTML
document. The properties of the Applet object represent the public
fields of the applet, and the methods of the Applet object represent
the public methods of the applet.
LiveConnect technology in Netscape and
ActiveX technology in Internet
Explorer allow JavaScript programs to use the Applet object to read
and write the fields and invoke the methods of the corresponding Java
applet. See Chapter 22 for details.
Remember that Java is a strongly typed language. This means that each
field of an applet has been declared to have a specific data type,
and setting it to a value of some other type causes a runtime error.
The same is true of applet methods: each argument has a specific
type, and arguments cannot be omitted as they can be in JavaScript.
See Also
JavaObject; Chapter 22
•
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.