accesskey attribute

accesskey=characte

Explanation

Accesskey attribute is used as a shortcut key.
User can utilize this attribute to navigate to a new webpage in browser, by just using the keyboard shortcuts.
<element accesskey="character">
Values added with this attribute are:
ValueDescription
characterShortcut key to access an input.

Example Code:

Result :

Withfriendship

* To access the link, press "Alt + I (AccessKey)" or "Shift + Alt + I"
  • The default shortcut key for this attribute is "Shift + Alt + AccessKey".
  • In "Internet Explorer", user cannot simply navigate to new page by pressing shortcut keys. So, to visit to a page, user must press the shortcut key and then press "Enter" button.
  • This attribute can also used to select the "submit" button.

Limitations:

It will function in all major browsers except Opera.

Ask Questions

Ask Question