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
address
area
b
bdo
blockQuote
body
button
caption
cite
custom
dd
dfn
div
dl
dt
em
embed
fieldSet
form
frame
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
kbd
label
legend
li
menu
object
ol
p
pre
q
rt
ruby
s
samp
select
small
span
strong
sub
sup
table
tBody
td
textArea
tFoot
th
tHead
tr
u
ul
var

 

 

Show:
© 2015 Microsoft