Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get source code of page thru WebBrowser-Control (ActiveX InternetExplorer)?

How can I get source code of page thru WebBrowser Control (ActiveX InternetExplorer)?

I have an xml document "foo.xml".

var
 Web: TWebBrowser;
begin
 ...
 Web.Navigate("foo.xml");
 // How can I get source code thru WebBrower control<----
 ...
end;
like image 954
user82002 Avatar asked Mar 24 '09 13:03

user82002


1 Answers

In the DocumentCompleted event, look at the DocumentText property of the WebBrowser control. It should have the complete text of the loaded page.

like image 89
Jim H. Avatar answered Nov 15 '22 12:11

Jim H.