title: Launch external application
body: <p>I am building a local web application and I'd like to launch an external application with a button.
  I've found this code which works in an .html file with Internet Explorer, but inside a show.html.erb it doesn't work, just shows the error message</p>
  
  <pre><code>&lt;script language="javascript"&gt;
  function LaunchApp(appPath)
  {
      try
      { 
          WSH = new ActiveXObject("WScript.Shell");
          WSH.run(appPath);
      }
      catch (ex)
      {
          errMsg = "An error occured while lauching the application.\n\n";
          alert(errMsg);
      }
      window.open('', '_self', '');
  }
  &lt;/script&gt;
  &lt;button onclick="LaunchApp('C:\\windows\\system32\\notepad.exe')"&gt;Click me&lt;/button&gt;
  </code></pre>
  
  <p>It'll be possible to make this launch the application?</p>