«« Site Rescued »»

While the site is still going to move from its current host, a new site will now take its place. More Info.

The new site may have less content, but the core will now remain. And it will now play nicely with phones! Keep an eye on the DelphiDabbler Blog for news.

» 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 »