1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Confirm function

Discussion in 'JavaScript and AJAX' started by prashantSum, Nov 18, 2005.

  1. prashantSum

    prashantSum New Member

    Joined:
    Oct 24, 2005
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    0
    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...
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    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.
     
  3. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    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.
     
  4. prashantSum

    prashantSum New Member

    Joined:
    Oct 24, 2005
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    0
    thx for replies,
    I will create a modal window.......
    thx...
     

Share This Page