Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Dec 2003
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    YesNoCancel dialog box

    Hi Everyone!

    Sorry, for asking this question, but, I just forget if it's possible or not. Is it possible from JavaScript to pop-up a YesNoCancel dialog box? And if it is then how?

    BIG THANKS to Everyone!

  • #2
    Regular Coder
    Join Date
    Jul 2003
    Location
    Massachusetts
    Posts
    472
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can get an OK/Cancel dialog using the confirm method. For example:
    Code:
    confirm('Are you sure?');
    However, you just can't customize what the buttons say or how they are styled. If cross-browser compatibility isn't a problem for you, you could use VBScript's MsgBox function in order to choose how the dialog should be displayed. Your only other option would be to create some kind of "fake" dialog in JavaScript which would then allow you to customize how it looks and what the buttons would say.
    Last edited by fredmv; 12-24-2003 at 08:59 AM.

  • #3
    New Coder
    Join Date
    Dec 2003
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks a lot buddy!

  • #4
    Regular Coder
    Join Date
    Jul 2003
    Location
    Massachusetts
    Posts
    472
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You're quite welcome.


  •  

    Posting Permissions

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