I want to know how to remove focus from an element when it is clicked using pure JavaScript.
I made it that way using jQuery
$(function(){
$(".btn").click(function(){
$(".btn").blur();
});
});
This served me well, but I changed some things on the site and jQuery was almost useless. It would be an exaggeration to include jQuery on a website just to do this.