Section 25.3. Applet: an applet embedded in a web page


25.3. Applet: an applet embedded in a web page

DOM Level 0:

25.3.1. Synopsis

 document.applets[i] document.appletName 

25.3.2. Properties

The Applet object has properties that mirror the HTML attributes of the <applet> tag (see HTMLElement for details). It also has properties corresponding to the public fields of the Java applet it represents.

25.3.3. Methods

The methods of an Applet object are the same as the public methods of the Java applet it represents.

25.3.4. Description

The Applet object represents a Java applet embedded in an HTML document. The Applet objects of a document may be obtained through the applets[] collection of the Document object.

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. 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 Chapter 23 for further details.

25.3.5. See Also

JSObject; JavaObject in Part III ; Chapter 12, Chapter 23




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net