<dialog closedby="any">
<p>
Closable using the <kbd>Esc</kbd> key, or by clicking outside the dialog
("light dismiss").
</p>
</dialog>HTMLDialogElement: closedBy property / notebook
HTMLDialogElement: closedBy property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.