title: WebBrowser and javascript
body: <p>I am working with a website that has javascript that does some changes on the page load. However, when I load the page and handle the DocumentCompleted event, this change isn't there. If I then continue paste the DocumentCompleted event, I can see the change happen. However I need this change to happen during DocumentCompleted so I can check some things.</p>
  
  <p>Is there an other event I can subscribe to, or a way to cause the webBrowser to do all the javscript on page?</p>
  
  <p>Edit: This is what I am talking about.</p>
  
  <p>I loaded a sample page just to show you, and clicked the submit button with all fields empty to generate an the error.</p>
  
  <p>Here is the result:</p>
  
  <p><a href="http://s8.postimage.org/zfv6stcar/sfsdfsdfds.jpg" rel="nofollow">http://s8.postimage.org/zfv6stcar/sfsdfsdfds.jpg</a></p>
  
  <p>Now if I take the HTML at that precise moment from that WebBrowser control, and render it somewhere else, those errors go away. The same thing happens when the server sends back those errors. If I handle the DocumentCompleted event and take the html, it isnt there. But after the event, it shows up in the control.</p>
  
  <p>Hope you understand, it's hard to explain.</p>