
window.confirm()
function in web browser JavaScript. The popup is
modal.
It is useful when you need to get a yes/no answer back from the user, e.g. “Are you sure you want
to delete this item?”.
API
TypeScript
Options
The title of the confirm pop-up.
The text of the confirm pop-up.
The label for the confirm button.Defaults to
"OK"
.The label for the cancel button.Defaults to
"Cancel"
.The style of the confirm button.Defaults to
"primary"
.