The HTML Attribute reference.

"accesskey" - html Attribute

  • Assigns an access key to an element. 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.

Value(s): a character as the accesskey
Used in the element(s):
Elements Description
a The A element denotes an anchor; a hypertext link or the destination of a link.Attribute, accesskey, usage:
  • Will move focus to the a element and when a user activates a link defined by the "a" element, the user agent generally follows the link.
area This element defines a map region on a client-side image.Attribute, accesskey, usage:
  • Will move focus to each map area using the accesskey assigned to each area element.

The key combination that activates the link to which the accesskey is applied varies depending on the platform and browser combination.

These are for the windows platform:
Browser accesskey usage Remarks
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Alt + accesskey Set the focus on the element. Press enter to execute any link.
Shift + escape + accesskey Shift + escape gives you a list of possible accesskey related to the page.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
button This element defines a submit button, reset button, or push button.Attribute, accesskey, usage:
  • Will move focus to the button element and depending on the browser execute any action related to the button.
input This element defines a form control for the user to enter input.Attribute, accesskey, usage:
  • Will move focus to the input and allow user input for a text type input. Depending on the browser a radio button or a checkbox button can be changed in state and for button type input the action can be executed.
label This element associates a label with a form control.Attribute, accesskey, usage:
  • Will set focus in the label element.
legend This element is used to provide the caption text for grouped form controls and text contained in a fieldset.Attribute, accesskey, usage:
  • Will set focus in the legend element.
textarea This element is used in forms to get multiple lines of text from the user.Attribute, accesskey, usage:
  • Will move focus to the textarea and allow user input.

© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.