Creating a yes/no messagebox in Javascript

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Creating a yes/no messagebox in Javascript

    Hi all,

    Is it possible to create a Javascript messagebox that shows the buttons Yes
    and No instead of normal confirm?

    Regards
    John.



    John Guest

  2. Similar Questions and Discussions

    1. Newbie, how to display a messagebox always on top
      Hi, sorry if this seems stupid, please have patience. I'm running Win XP sp2, VS 2005 Tem, SQL Sever 2005, I've been using a gridview to display...
    2. Can I use a javascript in creating a new custom control?
      I want to make a new Tree custom control and I have an excellent jscrpt code for it(DHTML XTree). this js file contains all the methods and events...
    3. creating javascript layer help
      I have created a javascript function within a cfm page that will allow me to show a previously created layer, depending on what is selected from the...
    4. Creating Controls with Javascript and getting to them from the server.
      Maybe I did this wrong. I think I did but I built some textbox controls using Javascript and I call the javascript function that builts and adds...
    5. messagebox inside ASP page
      How can I send messages to user like messageBox from a ASP page without doing postback over the page. thanks for your help Oscar
  3. #2

    Default Re: Creating a yes/no messagebox in Javascript

    The Javascript function is alert with some special parameters:

    [url]http://www.planetpdf.com/mainpage.asp?WebPageID=318[/url]



    On Sat, 19 Jul 2003 02:33:54 +0100, John <a@b.com> wrote:
    > Hi all,
    >
    > Is it possible to create a Javascript messagebox that shows the buttons
    > Yes
    > and No instead of normal confirm?
    >
    > Regards
    > John.
    >
    >
    >
    >


    --
    Craig Deelsnyder
    Microsoft MVP - ASP/ASP.NET
    Craig Deelsnyder [MVP] Guest

  4. #3

    Default Re: Creating a yes/no messagebox in Javascript

    OK, major braincramp on that one....I knew there was a way, did a quick
    search, bam, my last answer...didn't apply whatsoever....

    sorry bout that: try confirm:

    [url]http://javascript.internet.com/messages/yes-or-no-confirm.html[/url]




    On Fri, 18 Jul 2003 21:50:56 -0500, Craig Deelsnyder [MVP]
    <cdeelsny@nospamyahoo.com> wrote:
    > The Javascript function is alert with some special parameters:
    >
    > [url]http://www.planetpdf.com/mainpage.asp?WebPageID=318[/url]
    >
    >
    >
    > On Sat, 19 Jul 2003 02:33:54 +0100, John <a@b.com> wrote:
    >
    >> Hi all,
    >>
    >> Is it possible to create a Javascript messagebox that shows the buttons
    >> Yes
    >> and No instead of normal confirm?
    >>
    >> Regards
    >> John.
    >>
    >>
    >>
    >>
    >
    >
    >


    --
    Craig Deelsnyder
    Microsoft MVP - ASP/ASP.NET
    Craig Deelsnyder [MVP] Guest

  5. #4

    Default Re: Creating a yes/no messagebox in Javascript

    Hi

    No but you can create your own using showModalDialog for example
    [url]http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/showmodaldialog.asp[/url]

    --
    Best Regards
    Vidar Petursson
    ==============================
    Microsoft Internet Client & Controls MVP
    ==============================
    "John" <a@b.com> wrote in message
    news:%23DvalUZTDHA.2276@TK2MSFTNGP10.phx.gbl...
    > Hi all,
    >
    > Is it possible to create a Javascript messagebox that shows the buttons
    Yes
    > and No instead of normal confirm?
    >
    > Regards
    > John.
    >
    >
    >

    Vidar Petursson Guest

  6. #5

    Default Re: Creating a yes/no messagebox in Javascript

    All of which have become virtually useless as they are trapped
    and blocked by the PopUp blockers.

    --
    <%= Clinton Gallagher
    A/E/C Consulting, Web Design, e-Commerce Software Development
    Wauwatosa, Milwaukee County, Wisconsin USA
    NET [email]csgallagher@REMOVETHISTEXTmetromilwaukee.com[/email]
    URL [url]http://www.metromilwaukee.com/clintongallagher/[/url]

    LaGarde StoreFront 5 Affiliate: e-Commerce Software Development
    SEE: [url]http://www.storefront.net/default.asp?REFERER=-201499070[/url]


    "Craig Deelsnyder [MVP]" <cdeelsny@nospamyahoo.com> wrote in message news:oprsjedgmjbulmub@news.microsoft.com...
    > OK, major braincramp on that one....I knew there was a way, did a quick
    > search, bam, my last answer...didn't apply whatsoever....
    >
    > sorry bout that: try confirm:
    >
    > [url]http://javascript.internet.com/messages/yes-or-no-confirm.html[/url]
    >
    >
    >
    >
    > On Fri, 18 Jul 2003 21:50:56 -0500, Craig Deelsnyder [MVP]
    > <cdeelsny@nospamyahoo.com> wrote:
    >
    > > The Javascript function is alert with some special parameters:
    > >
    > > [url]http://www.planetpdf.com/mainpage.asp?WebPageID=318[/url]
    > >
    > >
    > >
    > > On Sat, 19 Jul 2003 02:33:54 +0100, John <a@b.com> wrote:
    > >
    > >> Hi all,
    > >>
    > >> Is it possible to create a Javascript messagebox that shows the buttons
    > >> Yes
    > >> and No instead of normal confirm?
    > >>
    > >> Regards
    > >> John.
    > >>
    > >>
    > >>
    > >>
    > >
    > >
    > >
    >
    >
    >
    > --
    > Craig Deelsnyder
    > Microsoft MVP - ASP/ASP.NET

    clintonG Guest

  7. #6

    Default Re: Creating a yes/no messagebox in Javascript

    mine doesn't do that....why would a popup blocker get involved with that
    javascript? It's an 'alert' box, not a separate window.....even though
    some sites love to also use alerts to advertise...

    not to say blockers don't do this, I just didn't know they got that
    'intrusive' (in my opinion).....




    On Sat, 19 Jul 2003 10:15:37 -0500, clintonG
    <csgallagher@REMOVETHISTEXTmetromilwaukee.com> wrote:
    > All of which have become virtually useless as they are trapped
    > and blocked by the PopUp blockers.
    >


    --
    Craig Deelsnyder
    Microsoft MVP - ASP/ASP.NET
    Craig Deelsnyder [MVP] Guest

  8. #7

    Smile Creating a messagebox in Javascript

    Hello Everyone,
    In Java Script there are two types of message box for displaying information. One is known as “alert” and another one is known as “confirm”. If you want to display an alert or warning regarding programs then we use alert () method for displaying message box and if we want to take some confirmation from user then we use confirm () method for displaying message box.

    Thanks !!
    GotiBandhu Huda is offline Junior Member
    Join Date
    Sep 2011
    Posts
    1

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139