html prevent button focus auto code example
Example 1: html prevent focus on input
You can change it in javascript with :
document.getElementById("yourID").readOnly = false; //This enables the possibility to focus
Example 2: how to remove the focus effect from a button when clicked
how to remove the focus effect from a button when clicked