document.applets

JavaScript 1.1+, JScript 1.0+ Nav3+, IE 3+ Syntax

document.applets
document.applets[index]

Description

The applets property is an array that contains all the Applet objects that appear within the HTML document from using the <applet> tag. The applet property has one property of its own, called length, which contains the number of Applet objects in the array. The index number ranges from zero to the length of the array minus 1. See " Applet, " earlier in this chapter, for a detailed explanation of all the properties associated with applets.

Example

Listing 7.55 includes two fictitious calculator applets that are embedded in the HTML document. Using the applets array, the names of the calculators are displayed on the ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.