Android - Open target _blank links in WebView with external browser

前端 未结 5 1391
忘掉有多难
忘掉有多难 2020-12-01 06:37

I build a WebView which displays a website. The website contains links without a target=\"_blank\" attribute and some with it.

I need to op

5条回答
  •  时光取名叫无心
    2020-12-01 07:14

    If you wanted to do it using only Javascript, then this is my solution for opening any link from webview of the android or ios app to the external browser.

    Modified your URL with this 'open=outside' in query params.

    ie. https://example.com/homePage?open=outside

提交回复
热议问题