How to create a dialog with “yes” and “no” options?

Posted by Editorial Staff | Updated on

Want to create a dialog with “yes” and “no” options using JavaScript? You’re probably looking for confirm(), which displays a prompt and returns true or false based on what the user decided:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers