WebBrowser.InnerHtml strange behavior
- by Poma
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?