in confirmsave() function in javascript with alert message save changes with OK n NO.
i wanted it to display YES n NO
how to do this
in confirmsave() function in javascript with alert message save changes with OK n NO.
i wanted it to display YES n NO
how to do this
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
AlanRank #669 · 3.6K reputationPosted Dec 11, 2007, 5:48 AM EST
I'm afraid you can't. The Javascript confirm() function can only display OK and Cancel buttons, though it's usually possible to phrase the confirmation in such a way that these responses are appropriate.
However, if you don't mind using VBScript instead, you can display Yes and No buttons with the MsgBox() function:
http://www.w3schools.com/vbscript/func_msgbox.asp
sa san14 reputationPosted Dec 11, 2007, 7:23 PM EST
hi,
don't be afraid, i wanted alert message to be shown as YES or NO. Eventhough i was able to handle message box with OK n Cancel. thanks for reply. thank you