Plugin

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

Core client-side JavaScript object.

Description

The Plugin object is used to obtain plug-in information from the browser. The Plugin object contains an array of elements containing the MIME types handled by each plug-in. Table 7.39 shows the different properties of the Plugin object.

Table 7.39. Properties of the Plugin Object
Property Description
description Refers to a description of the plug-in
filename Refers to the filename of a plug-in program
length Refers to the number of MIME types supported
name Refers to the plug-in name

Example

Listing 7.425 shows an example where all the browser's plug-ins are printed to the document.

Listing 7.425 Example Using 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.