Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

How to keep browsing in the same browser when click a new link

Post Reply
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to keep browsing in the same browser when click a new link

Post by salvadordf »

Hi,

Other demos block all popup windows but MiniBrowser allows CEF to create them automatically.

Use the TChromium.OnBeforePopup event and set "Result" to TRUE to cancel the new browser window and then call :
TChromium.LoadURL(targetUrl);

Using the same window will break some websites that use the JavaScript command "window.open" and keep a reference of the new window.
Post Reply