Click to See Complete Forum and Search --> : naming of confirmbox buttons


ppakuti
07-15-2003, 03:16 AM
Dear Ladies and Gentlemen,

I need to rename the standard buttons of a javascript confirm()-dialog (renaming of OK an Cancel buttons). Does somebody know how I can realize that using pure javascript (without using VBScript)?

Thank you in advance.

With best regards
Paul

AdamGundry
07-15-2003, 03:49 AM
I'm pretty sure JS can't control the button names like VB can. You could use a popup box instead, I suppose.

Adam

requestcode
07-15-2003, 07:07 AM
AdamGundry is correct that javascript cannont change the values of the buttons for the confirm box. The best you can do is create your own custom confirm box using a combination of JavaScript and DHTML.