Document.applets[] (Collection)

An array containing a list of all the applets in the document.


DOM level - 1
JavaScript - 1.1
JScript - 1.0
Internet Explorer - 3.02
Netscape - 3.0
Opera - 3.0
Property/method value type:AppletArray object
JavaScript syntax:-myDocument.applets
HTML syntax:<APPLET>

There is one applet object in this array for every <APPLET> tag. The applets are represented by JavaObject objects. These are wrappers around instances of the class java.applet.Applet. This is done with LiveConnect in Netscape and ActiveX in MSIE.

From Netscape 3 and MSIE version 3, your script is able to access the public methods and properties of the Java applets. Netscape supports better communication facilities between the two by virtue of its LiveConnect facility.

Every applet inherits some public properties and methods from its super-class. At least we can be certain that the applet supports the start() and stop() methods. In MSIE, the applets collection may contain references to intrinsic controls, images, embed and other non-Java objects as well. However other than those, you will need to examine the applet documentation on a case by case basis.

Refer to the description of the AppletArrayobject for details of how it enhances the built-inArray class.

DOM level 1 requires that this collection includes objects that are instantiated by <OBJECT> HTML tags. It also notes that <APPLET> HTML tags should be deprecated.


See also:Applet object, AppletArray object, Document object, Document.embeds[], JavaObject object, LiveConnect, OBJECT object

Property attributes: