August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.embeds
document.embeds[index]
The embeds property is an array that contains all the embedded objects and plug-ins that appear within the HTML document from using the <embed> tag. The embeds property has one property of its own, called length, which contains the number of items in the array. The index number ranges from zero to the length minus one.
Note
The embeds array property accesses the same data as the document.plugins array property.
Listing 7.96 uses the length property to display the number of embedded objects in a HTML document.
<html> <h2>Learn your shapes</h2> <h2>A ... |
Read now
Unlock full access