I have a button and the same one after the click would like to remove the focus using javascript, detail I do not use the mouse I use this button on a screen touch, without mouse or keyboard. I use the following function today to move up and down the screen:
$(document).ready(function(){
$('#up').click(function(){
$('html, body').animate({scrollTop : $(window).scroll().scrollTop()-500},800);
});
$('#down').click(function(){
$('html, body').animate({scrollTop : $(window).scroll().scrollTop()+500},800);
});
});
I also need the clicked button to be unfocused.