开发者

blur(); on middle mouse click

开发者 https://www.devze.com 2023-03-14 02:46 出处:网络
I\'ve searched google, this and other forums, but to no ava开发者_开发知识库il… sooooo, is it possible to have something like onMiddleClick=\"blur();\" to hide the focus border of a link on middle mo

I've searched google, this and other forums, but to no ava开发者_开发知识库il… sooooo, is it possible to have something like onMiddleClick="blur();" to hide the focus border of a link on middle mouse click?


$('a').click(function(e) {
    if (e.which == 2) {
        $(this).blur();
    }
});


You could use CSS...

#element:focus {
   outline: none;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消