Javascript Reference
Categories: Element

javascript Element hideFocus

@March 15, 2008, 1:22 a.m.
hideFocusFirefox/Netscape/NN n/a IE 5.5(Win) Chrome/Safari/DOM n/a  

Read/Write  

Specifies whether the browser should display a dotted focus rectangle around the element if it has focus. The element continues to be able to receive focus if it is focusable by default or has the tabindex attribute set. When this property is set to true, there is no visual clue about the focus state.

 
Example
 
document.getElementById("elementID").hideFocus = true;
 
Value

Boolean value: true | false.

 
Default

false


Powered by Linode.