-
Notifications
You must be signed in to change notification settings - Fork 936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add event handler for link #360
Comments
for now i'm using
|
You don't need to go back. You can just launch the url and abort the load, so you stay in the same page. I think this can help you: |
I have a href to P.S: or I can directly match |
Support to abort loading specific URLs was added in |
related issue #337 |
Closing this as the new |
In a project, we want to use the webview as a rich formatted text label. This label could contains links to some urls but tapping on it must not change the url of the webview as it is not meant to show other thing than the initial text.
It would be great if we could catch the event of tapping a url link in the webview so that we can extract the intent and open the browser application or do any other appropriate action.
For Android, this could be done using
shouldOverrideUrlLoading
in theWebViewClient
.On iOS, this could be done using
webView:decidePolicyForNavigationAction:decisionHandler:
of theWKNavigationDelegate
of the webview.The text was updated successfully, but these errors were encountered: