最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to run desktop app from browser? - Stack Overflow

programmeradmin1浏览0评论

I need to launch program from browser(like battlefield when you see dialog with confirmation of starting app). Should I make an extension or there is native way to do it with javascript?

I need to launch program from browser(like battlefield when you see dialog with confirmation of starting app). Should I make an extension or there is native way to do it with javascript?

Share Improve this question asked Aug 28, 2015 at 14:29 Gregory LeleytnerGregory Leleytner 1591 gold badge1 silver badge7 bronze badges 4
  • 2 possible duplicate of Running .exe from Javascript – Patrick Moore Commented Aug 28, 2015 at 14:32
  • Possible duplicate of stackoverflow./questions/18980957/… – Patrick Moore Commented Aug 28, 2015 at 14:32
  • possible duplicate of stackoverflow./questions/3057576/… – nihiser Commented Aug 28, 2015 at 14:33
  • 5 If the external program is registered as a handler for a URI protocol, loading such a URI can cause the browser to invoke the external program after displaying a dialog. – Dan D. Commented Aug 28, 2015 at 14:33
Add a ment  | 

2 Answers 2

Reset to default 5

If the basic idea is to launch a desktop app from the web browser, the first step is to create a new Registry in Windows and path a URL Custom protocol. And if you need it you can also send parameters by changing console arguments in your app and append the parameters in your html file.

You can check here:

https://weblogs.asp/morteza/How-to-run-a-desktop-application-from-a-web-page

check out: Running .exe from Javascript

There are cross-browser patibility issues with executing a .EXE on a clients machine. i would suggest you look into alternative languages such as Java or even Flash. But it can be done in Javascript.

-normally i wouldn't answer a question like this, but i saw someone say it's not possible. ANYTHING is possible.

发布评论

评论列表(0)

  1. 暂无评论