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.
Be aware that if you are not using some NAME orID binding to the <APPLET> tags, you may get unexpected results if new applets are added and you are accessing elements of this array using numeric index values.
In MSIE version 4, this returns a Collection object instead of an AppletArray object. MSIE 5 is more consistent with Netscape .
Prev | Home | Next |
Document.anchors[] | Up | Document.attachEvent() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |