JavaScript Reference/Javascript Collections/plugins 2

Материал из Web эксперт
Перейти к: навигация, поиск

"plugins" Example

    
<html>
<body>
<button onclick="alert(navigator.plugins.length);">length</button>
<button onclick="alert(navigator.plugins[0].description);">mimetype</button>
<button onclick="alert(navigator. plugins[0].filename);">suffixes</button>
<button onclick="alert(navigator.plugins[0].name);">type</button>
</body>
</html>



"plugins" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |navigator                                                     |
+----------------+--------------------------------------------------------------+



"plugins" JavaScript properties and JavaScript methods

JavaScript properties and JavaScript methods
 
item(), length



"plugins" Syntax Parameters and Note

Note:
Returns an array of all plugin objects available to the navigator object.
    
Syntax:
    
navigator.plugins // returns all plugins
navigator.plugins[param1] // returns an individual plugin 
Parameters:
    param1   Required;