when click somewhere else the border disappears, tried onfocus none, but didn\'t help, how to make ugly button border disappear when click on?
Set both the outline and the box-shadow properties of the button to none and make them important.
input[type="button"] {
outline: none !important;
box-shadow: none !important;
}
The reason for setting the values to important is that, if you are using other CSS libraries or frameworks like Bootstrap, it might get overridden.