Using HTMLDocument to manipulate HTML and show it in WebBrowser-control
问题 I am trying to manipulate a requested document in the WPF WebBrowser-control. I already managed it to invoke JavaScript on loaded document, but I am not able to change the shown HTML-code in the control itself. My (very simplified) code in the OnNavigating-Handler looks like this: mshtml.HTMLDocument doc = (mshtml.HTMLDocument)View.browser.Document; HTMLTableClass table = doc.getElementById("someTable") as HTMLTableClass; if (table != null) { table.appendChild((IHTMLDOMNode)(doc.createElement