mdn/content

Mention the "command" attribute of buttons

Open

Aperta il 25 nov 2025

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)Markdown (8900 star) (22.427 fork)batch import
Content:HTMLeffort: mediumhelp wanted

Descrizione

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dialog

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

Regarding the dialog element, a very important detail is NOT mentioned at all, which is that now you can use the command attribute on buttons instead of manually adding event listeners.

What did you expect to see?

At least a mention of this new method among the others. A new example (or an existing example updated to use it) would be great.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Guida contributor