Search code examples
javascriptdialogconfirm

Custom choices in JavaScript confirm dialog


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".


Solution

  • In short, you can't.

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