title: VBS Application with Webbrowser control and Javascript
body: <p>I have a VBS application with a webbrowser control. In this control I open an HTML file which contains JavaScript. This JavaScript just sets a variable to value, like this:</p>
  
  <pre><code>var clicked = 3;
  </code></pre>
  
  <p>Do I have any possibilty to use this variable in my VBS application? Can I return the value?</p>
  
  <p>Thank you!</p>
  
  <hr>
  
  <p>in my Webbrowswer control I use the event DocumentComplete?
  And in this event I say:</p>
  
  <pre><code>Dim oScript As Object
  set myVariables = oScript.clicked
  </code></pre>
  
  <p>?
  If I have more than one global variable, how can I chose the right one?
  And If I set this variable in javascript in an OnClick event the event "DocumentComplete" is not the right one, or?
  And the line <code>Dim oScript As Object</code> is not accepted in Viszal Basic Script?</p>
  
  <p>Thank you for your help!</p>