+ 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.
2 Respostas
+ 6
confirm();
// return true if a user click Ok, else return false
+ 3
confirm!
if (confirm==true)
you should the user clicked on and vice versa!