title: VBScript inside HTA
body: <p>I'm new to HTA and I want to use VBScript.</p>
  
  <p>I have some HTML and I wanted to generate the computer name inside a table (as an example)</p>
  
  <p>The big problem I'm running into is how do I retrieve the value from my function and place it inside the HTML?</p>
  
  <pre><code>&lt;body style="font:12 pt arial; color:white; filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#0080FF', EndColorStr='#00FFFF')" onresize="RestoreWindowSize()"&gt;
  
  &lt;div align="Center"&gt;
  
  &lt;span id="Update"&gt;&amp;nbsp;&lt;/span&gt;
  
  &lt;table border="0"&gt;
  &lt;tr&gt;
      &lt;td&gt;Computer name&lt;/td&gt;
      &lt;td&gt;&lt;div&gt;Data I would like to generate&lt;/div&gt;&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I understand my HTML is a little sloppy and i'm going to clean it up.
  How can I get data from a function called ComputerName to appear within my  tags</p>