I need to understand if Firefox (or IE) supports starting an external operating system (Windows) process from JavaScript code running in a <script>
tag in the web page. As a trivial example, I want the user to be able to click a button (<input type="button" .../>
) in the web page which would cause some JavaScript to be executed that would start Notepad (i.e. c:\Windows\System32\notepad.exe)
(Note: in my case, I need to start a custom .exe created by one of the developers I work with, not Notepad.)
My belief is that this is likely impossible, since it would obviously pose an extreme security risk. (e.g. You load my evil web page, my page runs some JavaScript which runs an external Windows process to delete your file-system). Perhaps there is a way to get around this, and still maintain a secure environment in the browser?
The additional minor complexity is that I need to be able to pass command line parameters to the process when it starts.