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

后端 未结 3 1102
挽巷
挽巷 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:11

    solved:
    
    document.writeln("",
       "")
    for (i=0; i < navigator.plugins.length; i++) {
       document.writeln("")
    }
    document.writeln("
    i", "name", "filename", "description", "# of types
    ",i, "",navigator.plugins[i].name, "",navigator.plugins[i].filename, "",navigator.plugins[i].description, "",navigator.plugins[i].length, "
    ")

提交回复
热议问题