Access VBScript variable within Javascript inside of an HTA
问题 I'm trying to access a variable in javascript that i set in vbscript all within one hta file: <script type="vbscript"> var globalVariable = test123 </script> <script type="text/javascript"> var globalVariable = <%= globalVariable %>; </script> This doesn't populate the variable globalVariable with anything. I've also tried var globalVariable = "<%= globalVariable %>"; This just populates the string within the quotes into the variable globalVariable. I can't get the value ' test123 ' set in