window.confirm()
function in web browser JavaScript. The popup is
modal.
API
TypeScript
Options
string
required
The title of the confirm pop-up.
string
required
The text of the confirm pop-up.
string
The label for the confirm button.Defaults to
"OK".string
The label for the cancel button.Defaults to
"Cancel".'primary' | 'secondary' | 'secondary-destructive' | 'destructive'
The style of the confirm button.Defaults to
"primary".