Conceptcommand / commandfor
Invoker Command Attributes
Native declarative HTML attributes, comprising command and commandfor, that specify the dialog a button controls and the action to perform, such as opening or closing. They allow the browser to handle the interaction directly without JavaScript event listeners.