0

I was wondering if it's possible to change the text of the OK/Cancel buttons in dialogs?

enter image description here

slevy1
  • 3,797
  • 2
  • 27
  • 33
john
  • 796
  • 1
  • 13
  • 34
  • Possible duplicate of [Javascript Confirm popup Yes, No button instead of OK and Cancel](https://stackoverflow.com/questions/823790/javascript-confirm-popup-yes-no-button-instead-of-ok-and-cancel) – CBroe Jun 06 '17 at 07:56

3 Answers3

0

there is not a part of html or css so you cannot change it anymore. here for refrence

Andhy Taslin
  • 31
  • 2
  • 7
0

possible but you need to create a custom alert dialog

https://tutorialzine.com/2010/12/better-confirm-box-jquery-css3

kirin19
  • 1
  • 2
0

You may with HTML5 which permits you to create your own customized dialog boxes, as the following example illustrates:

HTML:

<dialog open id="favDialog">
  <form method="dialog">
    <section>
      <p>Leave this site?</p>
    </section>
    <menu>
      <button id="cancel" type="reset">No</button>
      <button type="submit">Yes</button>
    </menu>
  </form>
</dialog>

See live code

This code to date is only supported by a couple of the major browsers, namely Chrome 37 and Opera 24 (see more details here).

slevy1
  • 3,797
  • 2
  • 27
  • 33