returnValue

Gets or sets the dialog's return value, usually to indicate which button a user pressed to close it.

https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/returnValue