천

사용자 브라우저의 펄러그인 목록 출력하기 입니다.

· 2015-12-13 (일) 13:00:45 · 2517

SCRIPT LANGUAGE="JavaScript">

<!-- Begin
numPlugins = navigator.plugins.length;
if (numPlugins > 0)
document.writeln("<b><font size=+3>Installed plug-ins</font></b><br>");
else
document.writeln("<b><font size=+2>No plug-ins ");
document.writeln("are installed.</font></b><br>");
document.writeln("<hr>");
for (i = 0; i < numPlugins; i++) {
plugin = navigator.plugins[i];
document.write("<center><font size=+1><b>");
document.write(plugin.name);
document.writeln("</b></font></center><br>");
document.writeln("<dl>");
document.writeln("<dd>File name:");
document.write(plugin.filename);
document.write("<dd><br>");
document.write(plugin.description);
document.writeln("</dl>");
document.writeln("<p>");
document.writeln("<table width=100% border=2 cellpadding=5>");
document.writeln("<tr>");
document.writeln("<th width=20%><font size=-1>Mime Type</font></th>");
document.writeln("<th width=50%><font size=-1>Description</font></th>");
document.writeln("<th width=20%><font size=-1>Suffixes</font></th>");
document.writeln("<th><font size=-1>Enabled</th>");
document.writeln("</tr>");
numTypes = plugin.length;
for (j = 0; j < numTypes; j++) {
mimetype = plugin[j];
if (mimetype) {
enabled = "No";
enabledPlugin = mimetype.enabledPlugin;
if (enabledPlugin && (enabledPlugin.name == plugin.name))
enabled = "Yes";
document.writeln("<tr align=center>");
document.writeln("<td>");
document.write(mimetype.type);
document.writeln("</td>");
document.writeln("<td>");
document.write(mimetype.description);
document.writeln("</td>");
document.writeln("<td>");
document.write(mimetype.suffixes);
document.writeln("</td>");
document.writeln("<td>");
document.writeln(enabled);
document.writeln("</td>");
document.writeln("</tr>");
  }
}
document.write("</table>");
document.write("<p><hr><p>");
}
// End -->
</SCRIPT>

|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
MySQL 16-01-26 조회 4,211
JavaScript 16-01-26 조회 2,797
PHP 16-01-26 조회 3,644
PHP 16-01-26 조회 9,603
jQuery 16-01-25 조회 6,124
PHP 16-01-25 조회 3,408
JavaScript 16-01-25 조회 3,050
JavaScript 16-01-25 조회 3,506
JavaScript 16-01-24 조회 3,019
JavaScript 16-01-24 조회 3,416
JavaScript 16-01-24 조회 2,940
JavaScript 16-01-23 조회 2,887
JavaScript 16-01-23 조회 2,888
JavaScript 16-01-23 조회 3,050
MySQL 16-01-22 조회 3,578
JavaScript 16-01-22 조회 3,175
PHP 16-01-22 조회 3,802
PHP 16-01-22 조회 4,480
JavaScript 16-01-21 조회 1만
MySQL 16-01-21 조회 7,174
JavaScript 16-01-21 조회 4,224
PHP 16-01-21 조회 3,421
JavaScript 16-01-21 조회 3,518
기타 16-01-20 조회 4,107
JavaScript 16-01-20 조회 3,010
JavaScript 16-01-20 조회 3,210
JavaScript 16-01-20 조회 2,991
JavaScript 16-01-19 조회 4,468
node.js 16-01-19 조회 3,429
PHP 16-01-19 조회 2,712