js confirm w3schools code example
Example: javascript confirm yes no
var proceed = confirm("Are you sure you want to proceed?");
if (proceed) {
//proceed
} else {
//don't proceed
}
var proceed = confirm("Are you sure you want to proceed?");
if (proceed) {
//proceed
} else {
//don't proceed
}