HTMLElement:accessKey 属性

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

HTMLElement.accessKey 属性用于设置用户可以通过按键快速跳转到指定元素的快捷键。

备注: HTMLElement.accessKey 属性由于在浏览器中常与预先存在的键绑定产生冲突,因此很少被使用。为了解决这个问题,浏览器通常会在用户按下其他特定的“限定”键(例如 Alt + accessKey)时才实现 accesskey 功能。

规范

Specification
HTML
# dom-accesskey

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
accessKey

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

参见