valentincognito
4/10/2017 - 5:10 AM

Confirm box

Confirm box

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