zaagan
7/1/2019 - 2:11 PM

JavaScript Confirm

JavaScript Confirm

var txt;

if (confirm("Press a button!")) {
    txt = "You pressed OK!";
} else {
    txt = "You pressed Cancel!";
}