I need to call a vbscript function from within an external javascript file :: function
- by RadAdam
heres what i got so far :
This function is not directly in the html page , its in an external js file , 'main.js'.
function createVBScript(){
 var script=document.createElement('script');
 script.type='text/vbscript';
 script.src='vb/fldt.vbs';
 document.getElementsByTagName('head')[0].appendChild(script);
}
the vbs file contains :
<!-- // Visual basic helper required to detect Flash Player ActiveX control version information
 Function VBGetSwfVer()
    MsgBox "Hello there"    
 End Function
// -->
thats all i want to do for the time being. how do i call VBGetSwfVer() from main.js ?