document.plugins

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

document.plugins
document.plugins[index]

Description

The plugins 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 plugins 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 plugins[] array property accesses the same data as the document.embeds[] array property.

Example

Listing 7.156 uses the length property to display the number of embedded objects in the HTML document.

Listing 7.156 Access the Plug-ins Using the embeds Array
 <html> <h2>Learn Shapes</h2> ...

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.