javascript判斷用戶瀏覽器插件安裝情況的代碼
更新時間:2011年01月01日 19:10:28 作者:
javascript判斷用戶瀏覽器插件安裝情況的代碼,需要的朋友可以參考下。
復(fù)制代碼 代碼如下:
document.writeln("<TABLE BORDER=1><TR VALIGN=TOP>",
"<TH ALIGN=left>i",
"<TH ALIGN=left>名稱",
"<TH ALIGN=left>文件名",
"<TH ALIGN=left>描述",
"<TH ALIGN=left>類型數(shù)</TR>")
for (i=0; i < navigator.plugins.length; i++) {
document.writeln("<TR VALIGN=TOP><TD>",i,
"<TD>",navigator.plugins[i].name,
"<TD>",navigator.plugins[i].filename,
"<TD>",navigator.plugins[i].description,
"<TD>",navigator.plugins[i].length,
"</TR>")
}
document.writeln("</TABLE>");