<dialog closedby>
Limited availability
The closedby HTML attribute for <dialog> sets which user actions close a dialog. For example, closedby="any" allows the dialog to be closed by clicking outside of it.
Browser support
- Chrome 134 Released on 2025-03-04
- Chrome Android 134 Released on 2025-03-04
- Edge 134 Released on 2025-03-06
- Firefox 141 Released on 2025-07-22
- Firefox for Android 141 Released on 2025-07-22
- Safari Not supported Position: support
- Safari on iOS Not supported Position: support
Baseline availability blocked since July 2025 by Safari (12 months)
Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.
MDN documentation
Specifications
- HTML (#attr-dialog-closedby), from HTML Workstream (WHATWG).
Usage (according to Chrome Platform Status)
~0.124% of page loads. More data at chromestatus.com.Web Platform Tests (WPT)
View the latest WPT test results for this featureInterop
- Included in Interop 2026
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist