Scan through each plug-in by provided parameters : PlugIn : Development : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP
JavaScript DHTML Home »  Development   » [  PlugIn  ]   
 



Scan through each plug-in by provided parameters

Please note that some example is only working under IE or Firefox.

/*
Javascript Essentials
by Jason J. Manger

Publisher: Mcgraw-Hill Osborne Media; 

ISBN: 0078822343
*/

<!--
  Program 12-2
-->
<html>
<head>
<script language="JavaScript">
<!--
document.write("There are <b>" + navigator.plugins.length +
               "</b> plug-ins installed.<p>");
document.write("<table border=1 width='100%' cellpadding=5>" +
               "<tr valign='top'>" +
               "<td bgcolor='Aqua' width='25%'>Name</td>" +
               "<td bgcolor='Aqua' width='25%'>Description</td>" +
               "<td bgcolor='Aqua' width='25%'>Filename</td>" +
               "<td bgcolor='Aqua' width='15%'>Suffixes / MIME " +
               "type</td>" +
               "</tr>");
// Scan through each plug-in:
for (n=0; n < navigator.plugins.length; n++) {
    document.write("<tr valign='top'>" +
                   "<td><b>" + navigator.plugins[n].name +
                   "</b></td>" +
                   "<td>" + navigator.plugins[n].description +
                   "</td>" +
                   "<td>" + navigator.plugins[n].filename +
                   "</td><td>");
    // Scan through this plug-in's suffixes array:
    for (m=0; m < navigator.plugins[n].length; m++) {
        document.write(navigator.plugins[n][m].suffixes + " = " +
                       navigator.plugins[n][m].type +
                       "<br>");
    }
    document.write("</td></tr>");
}
document.write("</table>");
//-->
</script>
</head>
</html>


           
       
Related examples in the same category
1.   Listing Plug-In Properties
2.  Synchronizing Two Plug-Ins
3.   Accessing a Plug-In
4.  Determining Whether the LiveVideo Plug-In Is Installed
5.  The About Plug-Ins Script
6.  Displaying Plug-In Information
7.  Display PDF using plugin
8.  Find pluin for Midi
9.  Displaying a List of Navigator Plug-Ins
10.  Properties of the Plugin Object
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.