从浏览器(网页)在客户端计算机上安装如何检测应用程序 [英] How to detect an application is installed on client machine from browser(web page)
问题描述
我的要求是当我的页面加载然后java脚本检测到应用程序是否安装在客户端计算机上如果没有安装应用程序然后打开一个弹出窗口下载应用程序如果安装了应用程序没有弹出窗口将来
我尝试了什么:
我不知道如何解决它
My requirement is when my page load then java script detect an application is installed or not on client machine if application is not installed then open a pop up to download application if application is installed no popup will come
What I have tried:
I have no idea how to solve it
推荐答案
我的要求是当我的页面加载然后java脚本检测到安装了一个应用程序或不在客户端
My requirement is when my page load then java script detect an application is installed or not on client
简答:基本上,你不能,出于安全原因禁止这样的行为。
网页无法潜入客户端计算机。
要让客户下载你的应用程序,客户必须点击链接。
Short answer: Basically, you can't, such action is forbidden for security reasons.
Web pages can't sneak into client computer.
To make client download your app, client have to click on link.
在浏览器中扫描和上传文档|动态Web TWAIN在线演示 [ ^ ]
做同样的事情
下载和安装弹出窗口后不会出现页面刷新
Scan and upload documents in browsers | Dynamic Web TWAIN Online Demo[^]
doing the same
After download and installing popup will not come on page refresh
这个软件不仅仅是一个软件,它为浏览器提供服务,扩展浏览器,这就是为什么可以从浏览器中检测到它。
This software is not just a software, it provide a service to the browser, it expand the browser, that is why it can be detected from the browser.
你不能直接从JavaScript做到这一点。如果需要检测应用程序的存在,则需要在客户端运行可执行文件。您可以使用 ClickOnce [ ^ ]但这需要用户接受正在运行的应用程序。
You can't do this directly from JavaScript. If you need to detect the presence of an application, you will need an executable running already on the client side. Potentially, you could deploy your application using ClickOnce[^] but this requires the user accepting the app running.
这篇关于从浏览器(网页)在客户端计算机上安装如何检测应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!