junaidp
junaidp

Reputation: 11201

GWT: How to change window.confirm Ok/Cancel to Yes/No

I am using a Window.confirm() in my GWT application, the message I see is "Ok" and "Cancel"

Instead of "Ok" I want "Yes" and instead of "Cancel" I want "No", is it possible?

Can a user see "Yes", "No" instead of "OK", "Cancel" in a popup displayed after calling Window.confirm()?

Upvotes: 0

Views: 1460

Answers (1)

Andrea Boscolo
Andrea Boscolo

Reputation: 3048

You can't. But you can use your own confirm-like widget. Just remember that it will never be blocking like window.confirm.

Upvotes: 2

Related Questions