Created
August 17, 2011 08:41
-
-
Save tlxue/1151105 to your computer and use it in GitHub Desktop.
Rabbit Shit
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
(function(){ | |
var links = document.getElementsByTagName("a"), | |
i; | |
for (i=0;i<links.length;i++){ | |
links[i].addEventListener('click',function(e){ | |
e.preventDefault(); // this is better if you want to disable links | |
// return false | |
},false); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment