title: How to run .hta file from within .html file w/o asking to download it
body: <p>I want to run .hta file from within .html file w/o the browser asking to download it.It should run in an iframe in the html page in the browser. The code i am using is this-</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;iframe src="app.hta"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The problem is that the browser asks to download the hta file but it want that it should run automatically.</p>
  
  <p>The hta file code is this-</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Application Executer&lt;/title&gt;
      &lt;HTA:APPLICATION ID="oMyApp" 
          APPLICATIONNAME="Application Executer" 
          BORDER="no"
          CAPTION="no"
          SHOWINTASKBAR="yes"
          SINGLEINSTANCE="yes"
          SYSMENU="yes"
          SCROLL="no"
          WINDOWSTATE="normal"&gt;
      &lt;script type="text/javascript" language="javascript"&gt;
          function RunFile() {
          WshShell = new ActiveXObject("WScript.Shell");
          WshShell.Run("c:/app.exe", 1, false);
          }
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;input type="button" value="Run Notepad" onclick="RunFile();"/&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>