开发者

blur(); on middle mouse click

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜