title: Calling Activex Control 's Functions from javascript
body: <p>I want to call a function from javascript.</p>
  
  <p>Ex . I have a activex control with a button named "btn" ,</p>
  
  <p>i want to return its caption using js,is technically possible ?</p>
  
  <p>Also how can i write custom functions in vb6 Activex Control ? and i need to embed the control on a web page.</p>
  
  <p>ex.</p>
  
  <pre><code>Option Explicit
  Public Function getText(ByVal message As String) As String
  MsgBox message
  End Function
  
  Private Sub UserControl_Initialize()
  Call getText("test")
  End Sub
  </code></pre>
  
  <p>I want to call <code>getText</code> from javascript.</p>
  
  <p>Thank you.</p>