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
Browser Support Releases
| Browser | Type | Version | Release 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 Key | Area | Core-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 |