Are custom buttons possible in an alert box?

Jack picture Jack · Feb 18, 2011 · Viewed 12.3k times · Source

Hi I have been looking to create custom buttons in an alert box I would like them to say Go and Cancel instead of OK and cancel

onClick="if(confirm('Would you like to continue?'))

Answer

KJYe.Name 葉家仁 picture KJYe.Name 葉家仁 · Feb 18, 2011

No, there is no cross-browser support for opening a confirmation dialog that is not the default OK/Cancel pair, but you can build them with JavaScript such as jQuery Alert Dialogs, jQuery impromptu, Mootools LightFace and many more.