0

I want to change the names of Ok and Cancel in Confirm Dialog box to Yes and No.

César
  • 9,939
  • 6
  • 53
  • 74
Swetha
  • 1
  • see example here: http://stackoverflow.com/questions/6457750/form-confirm-before-submit/12357337#12357337 –  Sep 11 '12 at 12:10

2 Answers2

4

Use Jquery Dialog.

its litte hard when you start learning JQuery but believe me After some time you will love it..

http://jqueryui.com/demos/dialog/

Bindas
  • 980
  • 2
  • 8
  • 22
1

This is defined by the browser, and not doable by using the default confirm() dialog.

You could create your own dialog box, possibly using a framework such as jQuery and jQuery UI.

Thom Wiggers
  • 6,938
  • 1
  • 39
  • 65
  • this is the right answer, others try to find an alternative and **that box wont look like as the confirm dialog box**. –  Jan 20 '12 at 11:29