How to create my own confirm dialog!

Discussion in 'Javascript' started by Hans, May 17, 2004.

  1. Hans

    Hans Guest

    Basically what I would like to do is my own confirm dialog so I can choose
    the text on the buttons etc. My code looks something like this today


    if (confirm("Do you want to save?"))
    //do some saving
    else
    //do something else


    I guess I will have to open a new window with window.open() but how do I set
    it up so it will wait for a return value (i.e when the user clicks on the
    Yes or No button)?

    Regards
    /Hans
    Hans, May 17, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tony Baker
    Replies:
    0
    Views:
    6,702
    Tony Baker
    Dec 17, 2003
  2. Patrick Delifer

    JS Confirm dialog from datagrid template column

    Patrick Delifer, Apr 27, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    689
    Patrick Delifer
    Apr 28, 2004
  3. =?Utf-8?B?VGFydW4gVXBhZGh5YXlh?=

    Problem showing confirm dialog on button webcontrol's onclick even

    =?Utf-8?B?VGFydW4gVXBhZGh5YXlh?=, Jun 1, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    3,545
    Peter Blum
    Jun 2, 2005
  4. ad

    How to show a confirm dialog?

    ad, Jun 4, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    768
  5. =?Utf-8?B?UHJpeWE=?=

    confirm dialog , return value

    =?Utf-8?B?UHJpeWE=?=, Dec 26, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    985
    Teemu Keiski
    Dec 26, 2005
Loading...

Share This Page