My favorites | Sign in
Project Logo
             
Search
for
Updated Sep 19, 2008 by pilgrim
Labels: about-html, about-accessibility, is-html-attribute, from-w3c
AccesskeyAttribute  
The accesskey attribute lets you assign a keyboard shortcut to a hyperlink, form control, or other element.

You are here: Home > HTML Reference > Elements > <a> element > accesskey attribute

Usage

The behavior of accesskeys differs widely between browsers.

Values

Any single character typable with a keyboard. Case-insensitive. There is no way to specify function keys or other "virtual" keys like Escape or Backspace. Since some browsers require the Shift key, you should not assign accesskeys that rely on typing shift (such as "!", which is Shift+"1" on many keyboards).

Elements

The accesskey attribute was originally designed for hyperlinks and form controls like input and select. In modern browsers, it works on any element that defines a tabindex attribute.

Browser compatibility

Compatibility table legend

Test IE8 IE7 IE6 FF3 FF2 Saf3 Op9 Chrome
a.accessKey reflects <a accesskey="C"> Y Y Y Y Y Y Y Y

Further reading


Sign in to add a comment
Hosted by Google Code