hidefocus attribute | hideFocus property
[This documentation is preliminary and is subject to change.]
Sets or gets the value that indicates whether the object visibly shows that it has focus.
Syntax
| HTML | <element hidefocus="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: Boolean
VARIANT_TRUE (true)
-
Focus is not visibly indicated.
VARIANT_FALSE (false)
-
Default. Focus is visibly indicated.
Remarks
The focus of an object is visibly indicated by a focus rectangle—a dotted rectangle within the boundaries of the object.
This property does not control the ability of an object to receive focus; for that, use the tabIndex property.
Examples
The following example shows how to use the HIDEFOCUS attribute to prevent a focus rectangle from appearing on a button.
Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/hidefocus.htm
... <BUTTON> Button With Rectangle</BUTTON> <BUTTON HIDEFOCUS="true"> Button Without Rectangle</BUTTON> ...
Build date: 3/8/2012
The focus rectangle is removed only within the browser context, the OS context will still show whatever focus mechanism is set in the OS Display properties, in your case a blue rectangle. This attribute works 100% in ie7, and ie8 on systems with no OS display property set for styling focus.
- 9/3/2010
- i_Cypher
- 7/26/2010
- Mr. Raymond Kenneth Petry
- 12/11/2009
- biggerlugs
- 12/11/2009
- biggerlugs