Webbrowser Control
-
Hello, I am using the following code to delete an HTML element form a document displayed in a webbrowser control:
HtmlElement elem = webBrowser1.Document.GetElementFromPoint(e.ClientMousePosition);
elem.OuterHtml = "";
MessageBox.Show(webBrowser1.DocumentText);but when I display the webbrowser documenttext property I found the original html including the deleted element! How can I delete an html element in a web browser control?
Dad
-
Hello, I am using the following code to delete an HTML element form a document displayed in a webbrowser control:
HtmlElement elem = webBrowser1.Document.GetElementFromPoint(e.ClientMousePosition);
elem.OuterHtml = "";
MessageBox.Show(webBrowser1.DocumentText);but when I display the webbrowser documenttext property I found the original html including the deleted element! How can I delete an html element in a web browser control?
Dad
Never having used the web browser control I am guessing so! I presume when you load in the document you are reading from the original, you then delete a control in the browser control. This ONLY affects the copy loaded into the control NOT the original source.
Never underestimate the power of human stupidity RAH
-
Never having used the web browser control I am guessing so! I presume when you load in the document you are reading from the original, you then delete a control in the browser control. This ONLY affects the copy loaded into the control NOT the original source.
Never underestimate the power of human stupidity RAH
-
Hello, I am using the following code to delete an HTML element form a document displayed in a webbrowser control:
HtmlElement elem = webBrowser1.Document.GetElementFromPoint(e.ClientMousePosition);
elem.OuterHtml = "";
MessageBox.Show(webBrowser1.DocumentText);but when I display the webbrowser documenttext property I found the original html including the deleted element! How can I delete an html element in a web browser control?
Dad