2014-05-23 3 views
1

I am using Cordova 3.4.1 on iOS with the InAppBrowser plugin version 0.4.0.Cordova InAppBrowser et <a target="_blank"> not working

When I have an <a href="...." target="_blank"> element, it is supposed to open in the InAppBrowser but it doesn't. Instead in replaces my app in the CordovaWebView and I have no way of getting back to the app.

if I do window.open it seems to work fine, but it isn't really feasible for me to add onclick handlers to all my links to then open them up in the InAppBrowser.

Répondre

1

Pour ouvrir dans InAppBrowser, votre lien doit être formaté comme ceci <a href="#" onclick="window.open('http://myurl.com', '_blank', 'location=no');">. J'espère que ça aide.

Questions connexes