I html 4.0 er der kommet en acceskey attribut der kan bruges til at aktivere forskellige elementer på siden:
17.11.2 Access keys
Attribute definitions
accesskey = character [CN]
This attribute assigns an access key to an element. An access key is a single character from the document character set.
Note. Authors should consider the input method of the expected reader when specifying an accesskey.
Pressing an access key assigned to an element gives focus to the element. The action that occurs when an element receives focus depends on the element. For example, when a user activates a link defined by the A element, the user agent generally follows the link. When a user activates a radio button, the user agent changes the value of the radio button. When the user activates a text field, it allows input, etc.
The following elements support the accesskey attribute: A, AREA, BUTTON, INPUT, LABEL, and LEGEND, and TEXTAREA.
In this example, we assign an access key to a link defined by the A element. Typing this access key takes the user to another document, in this case, a table of contents.
<P><A accesskey=\"C\"
rel=\"contents\"
href=\"
http://someplace.com/specification/contents.html\"> Table of Contents</A>
This example assigns the access key \"U\" to a label associated with an INPUT control. Typing the access key gives focus
to the label which in turn gives it to the associated control. The user may then enter text into the INPUT area.
<FORM action=\"...\" method=\"post\">
<P>
<LABEL for=\"fuser\" accesskey=\"U\">
User Name
</LABEL>
<INPUT type=\"text\" name=\"user\" id=\"fuser\">
</P>
</FORM>
mvh JakobA