🏠 New in Low Baseline Support: Invoker commands

December 12, 2025

caniuse · mdn · spec

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.

Source features