The following code illustrates my problem (I'm on Linux with PB6.21):
Code: Select all
OpenWindow(0, 100, 100, 400, 400, "Test", #PB_Window_SystemMenu)
WebViewGadget(0, 0, 0, 400, 400)
SetGadgetItemText(0, #PB_WebView_HtmlCode,
~"<a href=\"https://www.google.com\" target=\"_blank\">https://www.google.com _blank</a><br>"+
~"<a href=\"https://www.google.com\" target=\"_self\">https://www.google.com _self</a>")
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindowI know that this is likely for safety, but on Android and Linux with WebViews (Kotlin and Swift) such links open up in system webbrowser. I like to have similar behavior on Windows/Linux/MacOS.
Is there a way I can handle or enable this without having to intercept the link on HTML side to run a bound function?

