chown Member May 5, 2021 #1 Hey guys I have a webview that it is a link in it when user whatnk to open link `OverrideUrl` will open link in browser not in webview. how can I do that Code: Copy Sub wView_OverrideUrl(urls As String) As Boolean Dim brows As PhoneIntents StartActivity(brows.OpenBrowser(urls)) End Sub this is my webview example wView.LoadHtml("<body><a href='http://www.google.com'>link</a></body>")
Hey guys I have a webview that it is a link in it when user whatnk to open link `OverrideUrl` will open link in browser not in webview. how can I do that Code: Copy Sub wView_OverrideUrl(urls As String) As Boolean Dim brows As PhoneIntents StartActivity(brows.OpenBrowser(urls)) End Sub this is my webview example wView.LoadHtml("<body><a href='http://www.google.com'>link</a></body>")
Erel B4X founder Staff member Licensed User Longtime User May 6, 2021 #2 Add Return True. It will prevent WebView from loading the url. Upvote 0