Notice Of Closure

Please note that this website is due to close down on 15th June 2020.

In the interim I will try to move as much content as possible over to my GitHub account. Thanks to everyone who has supported the site over the years.

» Help

How to copy data between TWebBrowsers


If you ever wondered how to copy documents from one TWebBrowser just use this code. Using the Navigate() function is just a waste of time and not always will give you them same result (if a webpage changed in the meantime).

  Body1, Body2: IHTMLElement;
  Body1 := IHTMLDocument2(WebBrowser1.Document).Body;
  Body2 := IHTMLDocument2(WebBrowser2.Document).Body;
  Body2.OuterHtml := Body1.OuterHtml;
Author: Unknown
Added: 2007-06-02
Last updated: 2007-06-02

« Return to contents »