plugin's MimeType

Each plugin object is also an array of MimeType objects that can be accessed using bracket notation.

Each MimeType object has four properties:

NameDescription
descriptiona description of the MIME type;
enabledPlugina pointer back to the plugin object;
suffixesa comma-delimited string of file extensions for the MIME type;
typethe full MIME type string.
 
<!DOCTYPE HTML> 
<html> 
    <head> 
        <title>Example</title> 
    </head> 
    <body> 
        <script> 
          for (var i=0; i < navigator.plugins.length; i++){
              document.writeln(navigator.plugins[i].name);
              document.writeln(navigator.plugins[i]["description"]);
              document.writeln(navigator.plugins[i]["enabledPlugin"]);
              document.writeln(navigator.plugins[i]["suffixes"]);
              document.writeln(navigator.plugins[i]["type"]);
                            
          }
            

        </script> 
    </body> 
</html>
  
Click to view the demo
Home 
  JavaScript Book 
    DOM  

Navigator:
  1. The Navigator Object
  2. Detecting Plug-ins
  3. plugin's MimeType