WebBrowser.InnerHtml strange behavior

Posted by Poma on Stack Overflow See other posts from Stack Overflow or by Poma
Published on 2010-03-25T10:40:00Z Indexed on 2010/03/25 10:43 UTC
Read the original article Hit count: 527

Filed under:
|

I'm trying to load page and then remove some elements in it. While doing that I encountered strange behavior. When I do

webBrowser1.Document.Body.InnerHtml = webBrowser1.Document.Body.InnerHtml;

It turns off some JavaScript code, for example for Google.com it turns off auto completion. Why is that? I suppose it has something to do with JavaScript initialization, if so how can I reinitialize the page?

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms