Re: How to keep browsing in the same browser when click a new link
Posted: Sat Dec 29, 2018 10:36 am
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.
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.