javascript confirm yes no

64

javascript prompt yes/no -

var answer = window.confirm("Save data?");
if (answer) {
    //some code
}
else {
    //some code
}

Comments

Submit
0 Comments