w3resource logo

JavaScript Client Objects

JavaScript Navigator Object : plugins Property

Secondary Nav


The plugins property of the navigator object returns an array of all plugins currently installed on a particular browser. Each element of the plugins array is a plugin object. For example, if there are three plugins installed on the client, there are referred as -
navigator.plugins[0], navigator.plugins[1], and navigator.plugins[2]


Implemented in JavaScript 1.1



Where x is an integer referring a plug-in installed on the client or a string containing the name of a Plugin object.

Example of Navigator Object : plugins Property

The following web document shows all plugins currently installed in this browser.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>JavaScript navigator  object - plugins property example</title>
<h1 style="color: red">JavaScript navigator object : plugins property</h1>
<hr />
<script type="text/javascript">
//This is done to make the following JavaScript code compatible to XHTML. <![CDATA[
while (zz!=0)
document.write(navigator.plugins[0].name+"<br />");

View the example of navigator object's plugins property in the browser

Supported Browser

Internet Explorer 7 Firefox 3.6 Google Chrome 7 Safari 5.0.1 Opera 10
Yes Yes Yes Yes Yes


See also :

JavaScript Client side objects, methods, properties.

JavaScript Core objects, methods, properties.

Join our Question Answer community to learn and share your programming knowledge.