I want to be able to edit the HTML page source from a webbrowser control. E.g. the webbrowser navigates to http://www.google.com and I want to be able to edit the text between "<title>" and "</title>"
I have managed to grab the HTML and display it in a textbox:
Private Function GetDocument() As mshtml.HTMLDocument Try Dim htm As mshtml.HTMLDocument = WebBrowser1.document.DomDocument GetDocument = htm Catch Throw (New Exception("Cannot retrieve the document from the WebBrowser" + _ "Control: " + Err.GetException().Message)) End Try End Function textbox1.Text = htm
Any ideas? Thanks,