hidefocus attribute | hideFocus property
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
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>
...
See also
- a
- abbr
- acronym
- address
- applet
- area
- b
- bdo
- big
- blockQuote
- body
- button
- caption
- center
- cite
- custom
- dd
- dfn
- dir
- div
- dl
- dt
- em
- embed
- fieldSet
- font
- form
- frame
- frameSet
- hn
- hr
- i
- iframe
- img
- input type=button
- input type=checkbox
- input type=email
- input type=file
- input type=hidden
- input type=image
- input type=number
- input type=password
- input type=radio
- input type=range
- input type=reset
- input type=search
- input type=submit
- input type=tel
- input type=text
- input type=url
- ins
- isIndex
- kbd
- label
- legend
- li
- listing
- marquee
- menu
- object
- ol
- p
- plainText
- pre
- q
- rt
- ruby
- s
- samp
- select
- small
- span
- strike
- strong
- sub
- sup
- table
- tBody
- td
- textArea
- tFoot
- th
- tHead
- tr
- tt
- u
- ul
- var
- xmp