How do I create a yes / no / cancel in javascript instead of ok / cancel?

advertisements

How to create a yes/no/cancel alert box instead of ok/cancel alert box in Javascript?


You can't.

Instead, you can use a fake dialog library, such as jQuery UI Dialog.

These libraries create HTML elements that look and behave like a dialog box, allowing you to put anything you want (including form elements or video) in the dialog.