So, let’s say you want to modify your form’s “Reset” button from its default behavior, and add a dialog that basically says “Are you sure you want to clear your form and start over?” Well, that’s easy enough, right?
var return_value = confirm(“Are you sure you want to clear your form and start over?”); The return values are easily handled: true or false.
But the buttons…
Well, you’re asking a CONFIRMation type question, and sometimes YES/NO, RIGHT/WRONG, MORE/LESS, UP/DOWN, NEXT/PREVIOUS are the answers that would best fit your question, but how do you modify the buttons of the CONFIRM() function? Simply, you can’t.
:: Sigh ::
Anyone have any more elegant (client-side) solutions?