JavaScript » Document » applets

Syntax:
document.applets["appletID"]

This property is an array containing references to all the Applet objects in the current document.

This property is an array containing references to all the named Applet objects in the current document. These references are stored in the array in the order in which they are defined in the source code. The "appletID" argument is used to access items in the array and this can either be a string containing the applet name as defined within the <APPLET> tags in the HTML source, or an integer (with '0' being the first item in the array).

Examples

Code:
document.applets[0]
document.applets[1]
document.applets[2]

document.applets["appletname1"]
document.applets["appletname2"]
document.applets["appletname3"]
Explanation:

Both examples below return the same results; the first uses the defined names of the applets and the second uses their reference number within the array.