Querying browser-plugin existence/version/etc

强颜欢笑 提交于 2019-12-24 09:29:05

问题


As far as IE, my understanding is you have to try and instantiate an ActiveXObject and then check this succeeds, and you can then query the version through the instanced plugin... nothing particularly exciting.

But on Firefox (and I think other NPAPI browsers) you can check for installed plugins and get the DLL name, etc (on Windows at least). What exactly can I find out about installed plugins other than if it exists? Plugin file name, anything else?

edit: And, does IE support any way of querying plugins without creating an instance, in newer versions?


回答1:


For Gecko, the properties are listed on MDN. On WebKit, you only have the ones labeled DOM 0 on MDN (although there is a proposal to add the version info to WebKit as well).




回答2:


Take a look at the navigator.plugins array, there you'll find a lot of info :)



来源:https://stackoverflow.com/questions/5169022/querying-browser-plugin-existence-version-etc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!