<a target=“_blank”> not working for local HTML Files in Android using cordova

2k Views Asked by At

I am using Cordova 6.4.0 on Android 5.1.1 (Lollipop)

When I have an element, it is supposed to open in the new window of App but it doesn't. Instead of this, it replaces my app in the CordovaWebView and I have no way of getting back to the app. I found this question in Cordova InAppBrowser and <a target="_blank"> not working this link but here url to be opened like google.com/youtube.com or any other. But I want to simply open these local html files using href tag with target = _blank Thanks for the help in advance!

1

There are 1 best solutions below

0
On

try using target="_system" which should use the device default browser.

Cordova link reference