Mattiaf Active Member Licensed User Oct 21, 2022 #1 Hi, I'm loading this url into WebView2. I want to make possible that clicking into any link of them, it will open into webview1.. Is there any event? Thanks
Hi, I'm loading this url into WebView2. I want to make possible that clicking into any link of them, it will open into webview1.. Is there any event? Thanks
Erel B4X founder Staff member Licensed User Longtime User Oct 21, 2022 #2 Yes. Check OverrideUrl event. Upvote 0
Mattiaf Active Member Licensed User Oct 21, 2022 #3 sorry erel but i dont understand how that event could help me in this case... something like this? B4X: Sub WebView1_OverrideUrl(Url As String) As Boolean WebView2.LoadUrl(Url) Return True 'Return True to make webview1 ignore the link End Sub Last edited: Oct 21, 2022 Upvote 0
sorry erel but i dont understand how that event could help me in this case... something like this? B4X: Sub WebView1_OverrideUrl(Url As String) As Boolean WebView2.LoadUrl(Url) Return True 'Return True to make webview1 ignore the link End Sub