+ 1

How do I make a yes or no box?

We all know that there is the alert and prompt box, right? However, I don't know how to make a box with a "yes" or "no" answer.

16th Nov 2017, 3:06 PM
Forlorn Sphinx
Forlorn Sphinx - avatar
2 ответов
+ 6
confirm(); // return true if a user click Ok, else return false
16th Nov 2017, 3:43 PM
Calviղ
Calviղ - avatar
+ 3
confirm! if (confirm==true) you should the user clicked on and vice versa!
16th Nov 2017, 5:23 PM
᠌᠌Code X
᠌᠌Code X - avatar