accelerator property
Specifies whether the object contains an accelerator key.
The underlined accelerator keys are only visible when the ALT key is pressed.
JavaScript page for this property: accelerator. You can find other example(s) there. |
Possible values:
One of the following values:
The object does not contain an accelerator key. | |||||||
The object contains an accelerator key. |
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the accelerator property:
|
||||
<head> <style> .example { accelerator: true; } </style> </head> <body> <label for="user"><u class="example">U</u>ser Name: </label> <input type="text" id="user" accesskey="U" value="User name here" /> <br /><br />Press the ALT + U to use the accelerator! </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, b, bdo, big, blockQuote, body, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, fieldSet, font, form, H1, H2, H3, H4, H5, H6, i, ins, isIndex, kbd, label, legend, li, listing, menu, ol, p, pre, q, rt, ruby, s, samp, small, span, strike, strong, sub, sup, textArea, tt, u, ul, var, xmp
External links:
User Contributed Comments