views:

838

answers:

1

Is it possible to use both JScript and VBScript in the same HTA? Can I call VBScript functions from JScript and vice-versa? Are there any "gotchas," like the JScript running first and the VBScript running second (classic ASP pages have this issue).

+3  A: 

Yeah, just separate them into different script tags:

<script language="javascript">
   // javascript code
</script>

<script language="vbscript">
   ' vbscript code
</script>

Edit: And, yeah, you can cross call between Javascript and VBScript with no extra work.

Mark Brackett
+1 -since i'm not sure why the OP didn't up vote after your answer was selected
Faisal Vali