Results 1 to 3 of 3

Thread: Customized Confirm method using JavaScript

  1. #1
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default Customized Confirm method using JavaScript

    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

  2. #2
    Join Date
    Feb 2005
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  3. #3
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by johnnyi
    [Can you] rename the OK and Cancel buttons in the confirm() box.
    No.

    Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •