helle helle - 1 year ago 119
Javascript Question

Remove or disable focus border of browser via javascript

Does anybody know how to disable or manipulate the (in most browsers) dashed border of a dom-element if it has the focus in a tabindex order?

I want to build my own style for a focused element, but it would be great to use the existing feature, because with tabindex it is possible to bind keydown event to the dom-element.

Answer Source

Just make a CSS rule for the elements you want that have outline:none;

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download