PDA

View Full Version : Customized Confirm method using JavaScript



codeexploiter
09-28-2005, 05:11 AM
Hi Folks,

I am looking for a method to create a customized confirm method in Javascript.

Normally confirm method provides two button with pre-defined texts (Caption) on it, I want a confirm method that can use user-defined button captions. Rest of the working similar that of normal confirm method.

In other words when i click the first button (in place of OK button) I should get the value of True. When I click the second button (in place of CANCEL button) I should get the value of False for further processing.

Hope you people can help me out in this case too as always.

Thanks in Advance

Code Exploiter

johnnyi
12-29-2005, 07:00 PM
Are you looking for the buttons to be renamed from OK and Cancel to (i.e) 'True' and 'False' -- or are you looking for the logic behind the OK and Cancel buttons to perform certain actions?

I can help you with the latter, but have the same question myself for the former - as to whether or not you can rename the OK and Cancel buttons in the confirm() box.

Anyone know of a way to do this?

- I

mwinter
12-29-2005, 08:26 PM
[Can you] rename the OK and Cancel buttons in the confirm() box.No.

Mike