If the pdf viewer plugin is not installed how to detect it and give a alert message to install pdf viewer
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:
来源:https://stackoverflow.com/questions/4122061/javascript-detect-adobe-reader-plugin-for-browser