title: How get html source code of a webbrowser (it only contains javascript codes)
body: <p>How can I get html source code (DocumentText) of a webbrowser (in only contains javascript codes)?<br>
  we can see the entire page in webbrowser, but it's DocumentText only contains javascript codes!<br>
  when I open that page in ff or other browsers, the source code does n't show html and we only have javascript codes.<br>
  what is going on and how can I invoke a click event of a button inside that page in webbrowser?  </p>
  
  <p><strong>Edit:</strong>   </p>
  
  <pre><code>    IHTMLDocument2 document = webBrowser1.Document.DomDocument as IHTMLDocument2;
      if (document != null)
      {
          string content = document.body.innerText;
          if (content != null)
          {
             bla bla bla
          }
      }
  </code></pre>
  
  <p>by these codes <code>content</code> is always null</p>
  
  <p>or   </p>
  
  <pre><code>        if (webBrowser1.DocumentText.Contains("a button's id"))
          {
                 bla bla bla
          }
  </code></pre>
  
  <p>and by these codes we only have javascript in DocumentText and there is no that button's id in DocumentText for invoke!<br>
  how can I find that button or how can I fill an input after that page loads in webbrowser component?  </p>