title: Javascript in HTA File
body: <p>everytime when i try to add javascript in a hta file with vbscript it comes an error message when i click the submit button:</p>
  
  <pre><code>object doesn't support this property or method
  </code></pre>
  
  <p>I try this</p>
  
  <pre><code>&lt;script type="text/javascript" src=""&gt;&lt;/script&gt;
  </code></pre>
  
  <p>and this</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
         ...code
      &lt;/script&gt;
  </code></pre>
  
  <p>Is there anyone who know the problem?</p>
  
  <p><strong>//EDIT: I have the problem, i forgot a VBScript: to call the vbscript sub
  THANKS!!</strong></p>
  
  <pre><code>&lt;input type="submit" value=" Submit " onclick="Submit" style="margin-left:100px;"&gt;
  </code></pre>
  
  <p>This is the right one:</p>
  
  <pre><code>&lt;input type="submit" value=" Submit " onclick="VBScript:Submit" style="margin-left:100px;"&gt;
  </code></pre>