@James_L_Sep 30.2003 — #I am not familiar with the term VB "sub", as I don't know Visual Basic, but I have embedded Visual Basic code (is that a sub?) directly into a javascript routine when I did a school assignment that involved browser and plug in detection.
Because IE Windows doesn't support the Navigator.plugins array, we could not use that method to detect if the Flash 6 plugin was present. The basic idea was to use Javascript to detect the browser, and if it was windows IE, then use the document.write method to write the visual basic script out. If it was any other browser that did support the navigator.plugins array then we just used Javascript for the detection.
Something like this (CODE SNIPPET):
if ((navigator.userAgent.indexOf("MSIE") != -1) && (navigator.appVersion.indexOf("Win") != -1))
// if the browser is a Windows based IE, use VBScript to determine which Flash version it is
@Khalid_AliOct 01.2003 — #[i]Originally posted by maria_papa [/i]
[B]nop......I did that. It doesn't work [/B][/QUOTE]
In that case I can only say that you did not implemented the code correctly..
the code below will work in IE
the first part is in JavaScript and the second is in VBScript.if you click the button it will call javascript function which calls VBScript function that will print "hello from VBScript " string.