Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var a=document.getElementsByTagName("a");
- for(var i=0;i<a.length;i++) {
- if(!a[i].onclick && a[i].getAttribute("target") != "_blank") {
- a[i].onclick=function() {
- window.location=this.getAttribute("href");
- return false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement