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;
}
精彩评论