Created
May 28, 2013 17:51
-
-
Save iammilton82/5664651 to your computer and use it in GitHub Desktop.
Force IOS web app links to open in same document
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
var a = document.getElementsByTagName("a"); | |
for (var i = 0; i < a.length; i++) | |
{ | |
a[i].onclick=function(){ | |
window.location = this.getAttribute("href"); | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment