title: Access VBScript variable within Javascript inside of an HTA
body: <p>I'm trying to access a variable in javascript that i set in vbscript all within one hta file:</p>
  
  <pre><code>&lt;script type="vbscript"&gt;
      var globalVariable = test123
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
      var globalVariable = &lt;%= globalVariable %&gt;;
  &lt;/script&gt;
  </code></pre>
  
  <p>This doesn't populate the variable globalVariable with anything. I've also tried</p>
  
  <pre><code>var globalVariable = "&lt;%= globalVariable %&gt;";
  </code></pre>
  
  <p>This just populates the string within the quotes into the variable globalVariable. </p>
  
  <p>I can't get the value '<code>test123</code>' set in the VBScript section to populate into a JS variable within the JS section.</p>
  
  <p>Any help would be appreciated.</p>