Javascript to open application on client's machine
Long time back I was wondering if some how I will be able to open any application through my website on client's machine. Finally I came to know that yes it is possible and I will end up with this code.
Following code will open up notepad on client's machine. Before opening the file it will prompt the user, if the user accepts then it will opened. As of now it worked on windows with explorer only.
<script>
function go()
{
w = new ActiveXObject("WScript.Shell");
w.run('notepad.exe');
return true;
}
</script>
<form>
Run Notepad (Window with explorer only)
<input type="button" value="Go" onClick="return go()">
</form>