Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var links = document.getElementById('nav').getElementsByTagName('a');
- for ( var i = 0; i < links.length; i++ ) {
- links[i].onmousedown = function () {
- this.blur();
- return false;
- }
- links[i].onclick = function() {
- this.blur();
- }
- if ( /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ) {
- links[i].onfocus = function() {
- this.blur();
- }
- }
- }
Add Comment
Please, Sign In to add comment