Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi open link in other webbrowser (https://www.delphipraxis.net/84063-open-link-other-webbrowser.html)

mr_fahrrad 10. Jan 2007 19:51


open link in other webbrowser
 
I have two webbrowsers

How I make to click in link in one and load page (from clicked link) in the second webbrowser?

mkinzler 10. Jan 2007 19:52

Re: open link in other webbrowser
 
You have to catch events in the first instance and pass them to the second.

marabu 10. Jan 2007 20:20

Re: open link in other webbrowser
 
Hi,

the code sample attached here shows you how to deal with the event OnNewWindow2() and multiple instances of TWebBrowser. While OnNewWindow2() is fired only when a new browser instance is about to open, OnBeforeNavigate2() is fired for any navigation.

Regards

mr_fahrrad 11. Jan 2007 12:28

Re: open link in other webbrowser
 
thanks!

I use beforeNavigate2 and make my action and cancel=true;

marabu 11. Jan 2007 13:33

Re: open link in other webbrowser
 
Think twice.

If that very link is clicked while Shift is held down, a new browser window is created. Only thereafter the event OnBeforeNavigate2() is fired. You sure can cancel the ongoing navigation now, but what about the blank window glaring at you?

Regards


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:09 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz