如何列出安装在你浏览器里的所有插件?
如果想要列出浏览器里安装的所有插件,需要使用 JavaScript 导航器对象。JavaScript 导航器对象包含一个子对象,叫做插件。此对象是一个数组,其中有一个条目对应于浏览器上安装的每个插件。
示例
你可以尝试运行以下代码来列出浏览器里安装的所有插件 −
<html>
<head>
<title>List of Plug-Ins</title>
</head>
<body>
<table border="1">
<tr>
<th>Plug-in Name</th>
<th>Filename</th>
<th>Description</th>
</tr>
<script>
for (i = 0; i < navigator.plugins.length; i++)
{
document.write("<tr><td>");
document.write(navigator.plugins[i].name);
document.write("</td><td>");
document.write(navigator.plugins[i].filename);
document.write("</td><td>");
document.write(navigator.plugins[i].description);
document.write("</td></tr>");
}
</script>
</table>
</body>
</html>
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP