Are custom buttons in the warning window possible?

Hi, I am looking to create custom buttons in a warning window. I would like them to say "Disable" and "Cancel" instead of "OK" and cancel

onClick="if(confirm('Would you like to continue?'))
+3
source share
3 answers

No, there is no cross-browser support for opening the confirmation dialog, which is not the default OK / Cancel pair, but you can build them using JavaScript, for example jQuery Alert Dialogs , jQuery impromptu , Mootools LightFace and many others.

+4
source

You cannot, as far as I know. The button title is not customizable.

(, , ).

+3

Source: https://habr.com/ru/post/1793149/


All Articles