HTML Attributes
HTML closedby attribute
Controls allowed user-initiated dismissal of a dialog. any also permits light dismissal; closerequest allows platform close requests; none relies on author-provided controls. Check compatibility separately from dialog itself. Applicable elements include: <dialog>. Check each element’s value rules.
Formal Syntax & Structure
html syntaxhtml
closedby="none"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| closedby | enumerated: any, closerequest, none | Controls allowed user-initiated dismissal of a dialog. any also permits light dismissal; closerequest allows platform close requests; none relies on author-provided controls. Check compatibility separately from dialog itself. |
Working Example
Example Snippethtml
<dialog open closedby="none"> <form method="dialog"> <button>Close</button> </form></dialog>