If Assigned (WebBrowser1. Document) then
The begin
Iall:=(WebBrowser1. Document AS IHTMLDocument2). The Body;
While iall. ParentElement & lt;> Nil do
The begin
Iall:=iall. ParentElement;
end;
Htmlsour:=iall. OuterHTML;
Memo1. Lines. Text:=htmlsour;
Ordinary Windows programs can do that, but in the framework of FM webbrowser no document attributes, want to obtain webbrowser browsing web pages how to get the source code?
CodePudding user response:
Be sure to use webrowser? Can look for open source Chrom