requestClose

fun requestClose(returnValue: String = definedExternally)(source)

The requestClose() method of the HTMLDialogElement interface requests to close the dialog.

MDN Reference