Skip to content

Instantly share code, notes, and snippets.

@heyjordn
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heyjordn/86f0419f4026284b50e8 to your computer and use it in GitHub Desktop.
Save heyjordn/86f0419f4026284b50e8 to your computer and use it in GitHub Desktop.
Open Dynamic Links Using The Cordova InAppBrowser (ionicFramework)
document.onclick = function (e) {
e = e || window.event;
var element = e.target || e.srcElement;
if (element.tagName == 'A') {
window.open(element.href, "_blank", "location=yes");
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment