L
leosarasua
I am writing a page in French and I need to create a confirm box, but
I want to change the labels of the buttons from "OK" and "Cancel" into
"Oui" and "Non".
I've looked around and it seems impossible to do this, so my question
is: why is the confirm method so restrictive? All it needs is a
question string and two labels for the true and false buttons. Why was
it defined with only one parameter, instead of, let's say one
mandatory and two optional parameters? If there is no reason, then
would it be possible to request a modification to the Javascript
standard? If two optional parameters are added, it would still be
backward compatible, and it would make life easier to those who, like
me, need to write code in other languages.
Please comments.
I want to change the labels of the buttons from "OK" and "Cancel" into
"Oui" and "Non".
I've looked around and it seems impossible to do this, so my question
is: why is the confirm method so restrictive? All it needs is a
question string and two labels for the true and false buttons. Why was
it defined with only one parameter, instead of, let's say one
mandatory and two optional parameters? If there is no reason, then
would it be possible to request a modification to the Javascript
standard? If two optional parameters are added, it would still be
backward compatible, and it would make life easier to those who, like
me, need to write code in other languages.
Please comments.