Answers for "javascript prompt yes/no"

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