Packagedom.objects
Classpublic class Plugin
InheritancePlugin Inheritance Object

Introduced in: DOM 0 

A plug-in module installed on the client.

A plug-in is a software module that the browser can invoke to display specialized types of embedded data within the browser. The user can obtain a list of installed plug-ins by choosing About Plug-ins from the Help menu.

Each Plugin object is itself array containing one element for each MIME type supported by the plug-in. Each element of the array is a MimeType object. For example, the following code displays the type and description properties of the first Plugin object's first MimeType object.

     myPlugin=navigator.plugins[0]
     myMimeType=myPlugin[0]
     document.writeln('myMimeType.type is ',myMimeType.type,"<BR>")
     document.writeln('myMimeType.description is ',myMimeType.description

The preceding code displays output similar to the following:

     myMimeType.type is video/quicktime
     myMimeType.description is QuickTime for Windows 



Public Properties
 PropertyDefined By
  DOM 0 description : DOMString
[read-only] A description of the plug-in.
Plugin
  DOM 0 filename : DOMString
[read-only] Name of the plug-in file on disk.
Plugin
  DOM 0 length : DOMString
[read-only] Number of elements in the plug-in's array of MimeType objects.
Plugin
  DOM 0 name : DOMString
[read-only] Name of the plug-in.
Plugin
Public Methods
 MethodDefined By
  
DOM 0 item(index:Number):MimeType
Retrieves a MimeType by index.
Plugin
  
Retrives a MimeType by name.
Plugin
Property Detail
DOM 0 descriptionproperty
description:DOMString  [read-only]

Introduced in: DOM 0 

A description of the plug-in.


Implementation
    public function get description():DOMString

Example
3.0.40624.0
DOM 0 filenameproperty 
filename:DOMString  [read-only]

Introduced in: DOM 0 

Name of the plug-in file on disk.


Implementation
    public function get filename():DOMString

Example
npctrl.dll
DOM 0 lengthproperty 
length:DOMString  [read-only]

Introduced in: DOM 0 

Number of elements in the plug-in's array of MimeType objects.


Implementation
    public function get length():DOMString
DOM 0 nameproperty 
name:DOMString  [read-only]

Introduced in: DOM 0 

Name of the plug-in.


Implementation
    public function get name():DOMString

Example
Silverlight Plug-In
Method Detail
DOM 0 item()method
public function item(index:Number):MimeType

Introduced in: DOM 0 

Retrieves a MimeType by index.

Parameters

index:Number — Index of the MimeType

Returns
MimeType — The specified MimeType

See also

DOM 0 nameItem()method 
public function nameItem(name:DOMString):MimeType

Introduced in: DOM 0 

Retrives a MimeType by name.

Parameters

name:DOMString — Name of the MimeType

Returns
MimeType — The specified MimeType

See also