I want to make and run a local HTML page (through file:///pathToFile/index.html).
This page will have a button. When pressed, a shell script located on my local file system next to the HTML page will be executed.
I tried:
<input type="button" value="Test" onclick="window.open('./test.sh')" />
But the browser offers me to download the shell script instead of executing it.
How can I make the webpage execute a script locally, and get the result of the execution in a variable?