Last active
August 29, 2015 14:20
-
-
Save heyjordn/86f0419f4026284b50e8 to your computer and use it in GitHub Desktop.
Open Dynamic Links Using The Cordova InAppBrowser (ionicFramework)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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