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
2 Answers
Reset to default 5If 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.