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".
In short, you can't.
You might want to consider looking into using something like a jQuery UI dialog instead.