Plugin décrit les extensions logicielles installées.
CompatibilitéDisponibilité
Javascript
Synopsisnavigator.plugins[i]Propriétés
navigator.plugins['nom']
| Propriété | Description |
|---|---|
| description | donne une description d'une extension logicielle. |
| filename | donne le nom de fichier du programme d'extension. |
| length | indique le nombre d'élément dans le tableau des types MIME. |
| name | spécifie le nom de l'extension logicielle. |
<html>
<body>
<script language="javascript">
if (navigator.appName == 'Netscape')
{
document.writeln("<table border=1><tr valign=TOP>"
+ "<th align=left>Nb</th>"
+ "<th align=left>Nom</th>"
+ "<th align=left>Nom de fichier</th>"
+ "<th align=left>Description</th>")
for (i = 0; i < navigator.plugins.length; i++)
{
document.writeln("<tr valign=TOP><td>" + i
+ "</td><td>",navigator.plugins[i].name
+ "</td><td>",navigator.plugins[i].filename
+ "</td><td>",navigator.plugins[i].description);
}
document.writeln("</td></tr></table>")
}
else
document.write("Ce programme ne fonctionne que sous Netscape");
</script>
</body>
</html> |