prompt ok cancel javascript 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
}