HTML DOM Element accessKey
HTML DOM Element accessKey Property
The accessKey property is used to either set or get the accesskey attribute of an element. It is actually used to specify a shortcut key to activate or focus an element. It is difficult to use it because of conflict with other keys in the browser and for our ease we use it with Alt Key.
Syntax:-
Its syntax is:- element.accessKey OR element.accessKey = character
Return:-
Its return is:- shortcut key
Further Explanation:-
Value | Description |
character | Specifies shortcut key to activate/focus the element. |