You are here: irt.org | FAQ | JavaScript | General | Q1642 [ previous next ]
All variables set outside functions in JavaScript (and all vars declared global I guess in VBScript) are available to the either script language. For example:
<script language="JavaScript"><!-- Sub vbFunction(jsvar) return jsvar End Sub </script> <script language="JavaScript"><!-- var jsvar = 'Hello world'; var vbvar = vbFunction(jsar); alert(vbvar); //--></script>