Confirm function

prashantSum's Avatar
Contributor
hi all,

I want a Confirm dialog, but want it's button's names to be changed to some other values like 'Add' and 'Update' instead of 'Ok' and 'Cancel', is it possible to change the labels of buttons of comfirm dialog, or is there any other function where I can customize the dialog...
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by prashantSum
hi all,

I want a Confirm dialog, but want it's button's names to be changed to some other values like 'Add' and 'Update' instead of 'Ok' and 'Cancel', is it possible to change the labels of buttons of comfirm dialog, or is there any other function where I can customize the dialog...
I am not a javascript expert but as far as I know it cannot be customized. What you can do is make a page that looks similar to the dialog with the colours same as Confirm dialog and display that as popup window.
pradeep's Avatar, Join Date: Apr 2005
Team Leader
JavaScript cannot be customized to show user defined texts on the alerts & dialog boxes.But VBScript offers a variety of dialogs, like Yes-No, Yes-No-Cancel, and many more.
What you can do with JavaScript is create a modal window, with whatever button you require.
prashantSum's Avatar
Contributor
thx for replies,
I will create a modal window.......
thx...