Home > Back-end >  Delphi FM framework program how to obtain the webbrowser source?
Delphi FM framework program how to obtain the webbrowser source?

Time:09-25


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
  • Related