Answers for "js Custom Confirm( only ask ok button"

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
1

are you sure you want to proceed click ok button javascript code

var result = confirm("Want to delete?");
if (result) {
    //Logic to delete the item
}
Posted by: Guest on October-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language