웹 브라우저에 설치된 모든 플러그인을 나열하려면 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>