title: Special case when calling InvokeScript with WebBrowser control
body: <p>I am trying to use InvokeScript method on the WebBrowser control to execute a script on the web page that has been loaded into my WebBrowser control.  If I am calling just a simple javascript function, this works properly. However, the javascript function that I am trying to call is nested within a variable like this:</p>
  
  <pre><code>var holder = 
  { 
      DoA: function() 
      {
           ....
      },
      DoB: function()
      {
           .....
      }
  }
  </code></pre>
  
  <p>Calling holder.DoA works fine when called from within the javascript, but the function is not called successfully when I try to call it from within my C# code like this:</p>
  
  <pre><code>object obj1 = m_webBrowser.Document.InvokeScript("holder.DoA");
  </code></pre>
  
  <p>Any ideas?</p>