Answers for "window prompt yes no"

8

js alert yes no

if (confirm('Are you sure you want to donate to Andrew Hyder?')) {
  // true (paypal.me/andrewdhyder)
} else {
  // false
}
Posted by: Guest on August-06-2020
0

javascript prompt yes/no

var answer = window.confirm("Save data?");
if (answer) {
    //some code
}
else {
    //some code
}
Posted by: Guest on September-21-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language