Contents Index Topic Contents | ||
Previous Topic: Properties Next Topic: action |
accessKey
Description
Specifies an accelerator key that can be applied to several elements, listed below. The ALT key plus a specified access key allows you to set the focus on a particular page.
Syntax
object.accessKey[ = "sAccessKey"]
Parameter Description accessKey Any alphanumeric keyboard key. Remarks
By default, the accessKey property sets focus to an element. In addition, some controls perform an action after receiving focus. For example, using accessKey on a button fires the onclick event. Whereas using accessKey on a radio button fires the onclick event and toggles the checked property, visibly selecting or deselecting the control.
The following example uses a combination of the LABEL element and the accessKey property to set focus on a text box. The rich text support in the LABEL element makes it possible to underline the designated accessKey.
<LABEL FOR="fp1" ACCESSKEY="1">#<u>1</u>: Press Alt+1 to set focus to textbox</label> <INPUT TYPE="text" NAME="T1" VALUE=text1 SIZE="20" TABINDEX="1" ID="fp1">This property has read/write permission and takes a string.
Applies To
A, APPLET, BUTTON, EMBED, FIELDSET, IFRAME, IMG, INPUT, LABEL, OBJECT, SELECT, TABLE, TEXTAREA
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.