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