Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

p = object.hideFocus

Property values

Type: Boolean

true (true)

Focus is not visibly indicated.

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.


...
<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

 

 

Show:
© 2014 Microsoft