closedBy

The closedBy property of the HTMLDialogElement interface indicates the types of user actions that can be used to close the associated

element. It sets or returns the dialog's closedby attribute value.

MDN Reference