navigator.plugins

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

navigator.plugins[num]

Description

The plugins property of the navigator object returns an array of the Plugins object representing all the plug-ins installed on a particular browser. These can be accessed by the indexed num passed.

Example

Listing 7.403 shows an example of how the plugins property is used. A loop is used to output a list of all the plug-ins for the browser.

Listing 7.403 Example of the plugins Property
 <html> <head> <title> Example of the plugins property of the navigator object</title> </head> <body> <script language="JavaScript"> <!--Hide var plugLength = navigator.plugins.length // loop through and output all the plugins // present in the browser ...

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.