[Javascript] variables between VBScript and JavaScript

Peter-Paul Koch gassinaumasis at hotmail.com
Sat May 19 06:35:56 CDT 2001



>Hello,
>Is there a way I can pass a variable from VBScript to a JavaScript and vice 
>versa?

JavaScript variables are accessible to VBScript:

<SCRIPT LANGUAGE="JavaScript">
var foo = 'bar';
</SCRIPT>

<SCRIPT LANGUAGE="VBscript">
// do something with foo, it still has the value 'bar'
</SCRIPT>

I never tested the other way around, but I guess it works fine, too.

ppk

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





More information about the Javascript mailing list