Web platform features explorer

<dialog closedby>

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.

Status

Limited availability

Specifications

Browser support

Baseline availability blocked since July 2025 by Safari (5 months)

Usage (according to Chrome Platform Status)

~0.025% of page loads. More data at chromestatus.com.

Developer signals

Votes: 2

If you want this feature to be available in all browsers, vote for it by adding a thumbs up reaction (👍) to this GitHub issue, and leave a comment with more information.