title: VB.Net WebBrowser invoke javascript function is not working
body: <p>I have a VB.Net windows application project.</p>
  
  <p>This is the VB.Net code snippet below.</p>
  
  <pre><code>  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  
       'webBrowser1 is the variable of the System.Windows.Forms.WebBrowser class. 
          webBrowser1.Navigate("file:///" &amp; IO.Path.GetFullPath(".\test.html"))
  
          'not working
          webBrowser1.Document.InvokeScript("test")
  </code></pre>
  
  <p>This is the test.html code snippet below.</p>
  
  <pre><code>&lt;html&gt;
  &lt;title&gt;test&lt;/title&gt;
  &lt;body&gt;
  &lt;script&gt;
      function test(){
          alert('test');
      }
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This application won't popup the 'test' alert in the javascript test function.</p>
  
  <p>How to fix this problem?</p>