Name

accessKey — NN n/a IE 4 DOM 1

Synopsis

Read/Write

A single character key that either brings focus to an element or, in the case of an A element (as a link), follows the link. The browser and operating system determine whether the user must press a modifier key (e.g., Ctrl, Alt, or Command) with the access key to activate the link. In IE 4/Windows, the Alt key is required, and the key is not case sensitive. Not working in IE 4/Mac.

Example

document.links[3].accessKey = "n"

Value

Single alphanumeric (and punctuation) keyboard character.

Default

None.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.