Custom choices in JavaScript confirm dialog

TheOne picture TheOne · Nov 25, 2009 · Viewed 56.2k times · Source

How to write a confirm dialog in JavaScript with custom choices?

Instead of just "Ok" and "Cancel", I would like to have for example "This" "That" and "Other".

Answer

Jordan Ryan Moore picture Jordan Ryan Moore · Nov 25, 2009

In short, you can't.

You might want to consider looking into using something like a jQuery UI dialog instead.