Object: Plugin
The Plugin object represents an installed plugin.
You can access an individual Plugin within a collection by its index position using Plugin.item(), by its name or id attribute using Plugin.namedItem(), or you can index the object directly. For example, if you create an instance of a Plugin object called myPlugins, then specifying
Plugin properties
|
Property name |
Type |
Description |
Status |
Support level |
Availability |
|---|---|---|---|---|---|
|
description |
DOMString |
Returns the description of the Plugin. |
read only |
Not part of any standard |
4.6 or later |
|
filename |
DOMString |
Returns the Plugin filename. |
read only |
Not part of any standard |
4.6 or later |
|
length |
unsigned long |
Returns the number of MIME types associated with the Plugin. |
read only |
Not part of any standard |
4.6 or later |
|
name |
DOMString |
Returns the name of the Plugin. |
read only |
Not part of any standard |
4.6 or later |
Plugin methods
Method: Plugin.item()
The item() method returns the Plugin at the specified index in the collection.
Parameters
Parameter |
Type |
Description |
|---|---|---|
index |
int |
The index position of the Plugin to be returned. Valid values are between 0 and Plugin.length-1 inclusive. |
Method: Plugin.namedItem()
The namedItem() method retrieves the Plugin with the given name from the collection.