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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
sa sanPosted Dec 12, 2007, 12:23 AM
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
AlanPosted Dec 11, 2007, 10:48 AM
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