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 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2011
    Posts
    42
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Customize. Confirm/alert message box

    Hi,

    Are there any existing css/html code available which i can use to display confirm dialog box with different buttons, instead of ok/cancel, eg: Yes/No.

    The dialog window styling should look exactly similar to confirm window.

  • #2
    Regular Coder
    Join Date
    Apr 2011
    Posts
    286
    Thanks
    2
    Thanked 39 Times in 39 Posts
    If you are talking about javascript dialog boxes/confirm boxes that you get from calling confirm() or alert(), you can not style those, they are dictated by the operating system I believe.

    You can however make your own that is actually a div container that pops up on top of your content in the same window that you can stylize, but is not a separate window.

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You can use these. It is basically what Wojjie suggested. They do use jQuery though.

    http://abeautifulsite.net/blog/2008/...alert-dialogs/
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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