Once again, very nice job on WebView4Delphi!
Can I use NewWindowRequested to redirect a hyperlink click to the default browser on the system?
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.
NewWindowRequested
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: NewWindowRequested
Hi,
Yes, you can.
Use that event with this code :
https://github.com/salvadordf/WebView4Delphi/blob/270dcaaa12d9336bea8ce0cbe627c038db20cc2c/demos/Delphi_VCL/KioskBrowser/uKioskBrowser.pas#L128
And use TempArgs.URI to open the default web browser like this :
https://stackoverflow.com/questions/10154543/opening-webpage-in-default-browser-with-double-quotes-inside-url
Yes, you can.
Use that event with this code :
https://github.com/salvadordf/WebView4Delphi/blob/270dcaaa12d9336bea8ce0cbe627c038db20cc2c/demos/Delphi_VCL/KioskBrowser/uKioskBrowser.pas#L128
And use TempArgs.URI to open the default web browser like this :
https://stackoverflow.com/questions/10154543/opening-webpage-in-default-browser-with-double-quotes-inside-url