confirm

external fun confirm(message: String): Boolean(source)

window.confirm() instructs the browser to display a dialog with an optional message, and to wait until the user either confirms or cancels the dialog.

MDN Reference