Web features explorer

<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.