BASELINE NowYouCanUse.com
Newly Available
id: invoker-commands

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: Achieved Newly Available on Dec 12, 2025 across core engines.
Desktop Browser Engine Support
Google Chrome
135
Supported
Mozilla Firefox
144
Supported
Apple Safari
26.2
Supported
Microsoft Edge
135
Supported
Mobile Browser Engine Support
Chrome Android
135
Firefox Android
144
Safari iOS
26.2
Specifications and References