Baseline Newly other

Invoker commands

The command and commandfor attributes for the <button> HTML element dispatch an action to an element when the button is invoked (by click or keystroke), as a declarative alternative to addEventListener() calls or onclick attribute handlers.

Baseline Status
Newly Available
Since 2025-12-12
First Core Launch
Chrome 135
2025-04-01
Core-3 Stability
255d
Last: Safari (2025-12-12)
BCD Keys Mapped
9
Group: other

Browser Support Timeline

Chrome v135 (2025-04-01) Chrome Android v135 (2025-04-01) Edge v135 (2025-04-04) Firefox v144 (2025-10-14) Firefox for Android v144 (2025-10-14) Safari v26.2 (2025-12-12) Safari on iOS v26.2 (2025-12-12)
Green dot marks the first browser release (2025-04-01); blue dots show subsequent browser launches (+255d total span).

Browser Support Releases

BrowserTypeVersionRelease Date
Chrome desktop 135 2025-04-01
Chrome Android mobile 135 2025-04-01
Edge desktop 135 2025-04-04
Firefox desktop 144 2025-10-14
Firefox for Android mobile 144 2025-10-14
Safari desktop 26.2 2025-12-12
Safari on iOS mobile 26.2 2025-12-12

Constituent MDN BCD Keys (Sample)

BCD KeyAreaCore-3 TTA
api.CommandEvent DOM API 255d
api.CommandEvent.CommandEvent DOM API 255d
api.CommandEvent.command DOM API 255d
api.CommandEvent.source DOM API 255d
api.HTMLButtonElement.command DOM API 255d
api.HTMLButtonElement.commandForElement DOM API 255d
api.HTMLElement.command_event DOM API 255d
html.elements.button.command HTML 255d
html.elements.button.commandfor HTML 255d