How to change the value of the buttons on an alert(), confirm(),prompt() method? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

How to change the value of the buttons on an alert(), confirm(),prompt() method?

I just want to know if how to change the names of the buttons, instead of CANCEL or instead of OK.

1st Apr 2017, 9:26 AM
Jayson Ondiano
Jayson Ondiano - avatar
2 Answers
+ 18
Impossible...
1st Apr 2017, 9:55 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 11
useable from confirm box and chang button from this , for example : http://jsfiddle.net/Xtreu/ or use dialog in jquery ui .
1st Apr 2017, 10:13 AM
elias sharafi
elias sharafi - avatar