Sets or retrieves a string that indicates whether the object contains an accelerator key. Syntax HTML |
{ ACCELERATOR : sIsAccessible }
|
---|
Scripting | object.style.accelerator(v) [ = sIsAccessible ] |
---|
Possible Values sIsAccessible | String that
specifies or receives one of the following values.false | Object does not contain an accelerator key. | true | Object contains an accelerator key. |
|
The property is read/write
for all objects except the following, for which it is read-only:
currentStyle.
The property has no default value. The Microsoft Cascading Style Sheets (CSS) extension is
not inherited.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.
Remarks An accelerator key is a single character used as a shortcut for selecting an object. Pressing the ALT key followed by the accelerator key gives focus to the object and invokes the default event associated with the object. This property is supported by Microsoft® Windows® 2000 and later, which enables users to hide navigation indicators for menu items and controls until the ALT key is pressed.
Example
This example uses the ACCELERATOR attribute in a u element to specify that the N in the label element is an accelerator key. When the option to "Hide keyboard navigation indicators until I use the Alt key" is enabled in the user's Display Properties, the N is not underlined until the user presses the ALT key. <LABEL FOR="oName"><U STYLE="ACCELERATOR:true">N</U>ame: </LABEL>
<INPUT TYPE="text"
ID="oName"
SIZE="25"
ACCESSKEY="N"
VALUE="Your name here">
Standards Information
There is no public standard that applies to this property.
Applies To |
A,
ACRONYM,
ADDRESS,
APPLET,
B,
BDO,
BIG,
BLOCKQUOTE,
BODY,
CENTER,
CITE,
CODE,
currentStyle,
CUSTOM,
DD,
defaults,
DEL,
DFN,
DIR,
DIV,
DL,
DT,
EM,
EMBED,
FIELDSET,
FONT,
FORM,
hn,
I,
IFRAME,
INS,
KBD,
LABEL,
LEGEND,
LI,
LISTING,
MENU,
OL,
P,
PLAINTEXT,
PRE,
Q,
RT,
RUBY,
runtimeStyle,
S,
SAMP,
SELECT,
SMALL,
SPAN,
STRIKE,
STRONG,
style,
SUB,
SUP,
TABLE,
TEXTAREA,
TT,
U,
UL,
VAR,
XMP | |
|