Is there a way to remove the selection with the Tab-Key on the Keyboard. When you're on a website and there are multiple Buttons and you press the Tab-Key it's selecting a button and adds a outline and when you press enter then it's triggering the button. Is there a way to remove this function on a website. I tried it with outline: 0;
for *
but it's just making the selected outline invisible.
Here's an example:
<button>First Button</button>
<button>Second Button</button>
<button>Third Button</button>
When you press the Tab-Key then you can see this:
When you add outline: 0;
to *
then the selected Button Outline is invisible but it's still there:
* {
outline: 0;
}
<button>First Button</button>
<button>Second Button</button>
<button>Third Button</button>
You might be able to use a negative tabindex
, however that is only supported on HTML5.
* {
outline: 1;
}
<button>First Button</button>
<button tabindex="-1">Second Button</button>
<button>Third Button</button>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With