Web platform features explorer

<dialog closedby>

Limited availability
Tags: api html Groups: HTML > HTML elements

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.

Learning resources on MDN

Browser support

Specifications