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

ぃ、小莉子 提交于 2019-12-12 00:38:50

问题


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:


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

Cordova link reference



来源:https://stackoverflow.com/questions/41379534/a-target-blank-not-working-for-local-html-files-in-android-using-cordova

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!