WebView, intercept a specific link and open it in the default browser.

Jonathan Marchand jonathan.marchand68 at gmail.com
Sat Jan 6 19:00:50 UTC 2024


Hi,

Haven't played with webview in a very long time, but I think you should
look at the javadoc of WebEngine, it gives examples of how to interact with
the Java code from the page through either JavaScript or event listeners.

Regards,
Jonathan


Le sam. 6 janv. 2024, 18:55, Davide Perini <perini.davide at dpsoftware.org> a
écrit :

> Hi there,
> I'm struggling to intercept a link inside a WebView and open it in the
> browser.
>
> I want that all the links works normally, creating a navigation inside
> the webview,
> but I want that some other links that have some specific text opens in a
> browser.
>
> Is this possible?
>
> Thanks
> Davide
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-discuss/attachments/20240106/148cb620/attachment-0001.htm>


More information about the openjfx-discuss mailing list