Javascript javascript检测浏览器的adobe reader插件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4122061/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
javascript detect adobe reader plugin for browser
提问by Rajeev
If the pdf viewer plugin is not installed how to detect it and give a alert message to install pdf viewer
如果未安装 pdf 查看器插件如何检测它并发出警报消息以安装 pdf 查看器
回答by Ben
I created a script on my blog for all major browsers to detect pdf reading capabilities. Even distinguishes between Chrome's PDF Viewer and Acrobat. you can get the code here:
我在我的博客上为所有主要浏览器创建了一个脚本来检测 pdf 阅读能力。甚至可以区分 Chrome 的 PDF 查看器和 Acrobat。你可以在这里得到代码: