How do I detect a custom plugin in Firefox/IE/Chrome?

后端 未结 3 1072
挽巷
挽巷 2021-01-14 03:02

My team wants to build a \"plugin\" for firefox/chrome/IE. How do I use javascript to detect if this plugin (not extension) is installed?

I would like to have a piec

3条回答
  •  不知归路
    2021-01-14 03:09

    navigator.plugins will have an array of plugins that you can check.

    This exists for Firefox, Chrome, and IE (at least version 8, I don't have a lower version to test)

    Here's what the array looks like in webkit:

    Plugins Array in Webkit

提交回复
热议问题