returnValue

var returnValue: <Error class: unknown class>

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