confirm method in javascript

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

  1. #1

    Default confirm method in javascript

    Is there a way to set the default option to 'Cancel' rather than 'Ok' in
    Javascript confirm method?

    cmdDelete.Attributes.Add("onClick", "javascript:return confirm('Are You Sure
    You Wish To Delete This Item ?');")

    Thanks.


    Jenet Guest

  2. Similar Questions and Discussions

    1. Calling WebService method from JavaScript
      Hi, I have written a WebService using Visual Studio.Net's 'ASP.Net Web Service' project (ASMX). I want to call the exposed methods form a HTML...
    2. javascript: a method for referencing model by nam
      this is kind of bassackwards, but it will work. i aint found a way to reference a model directly by name (yet), and since a model's index number is...
    3. JavaScript? Is there a bug in the console.printIn method?
      Throughout Acrobat's JavaScript reference docs, including the Acrobat JavaScript Scripting Reference, is the constant use and reference to the...
    4. PHP Sessions and Javascript submit method
      I have a javascript form field validation script that I have used many times with no problems. However, I just started using the script in a PHP...
    5. Javascript submit method
      Hello When using html forms & FMP does FMP absolutely require a <input type="submit" value="-NEW"> tag or can I get away with using something...
  3. #2

    Default Re: confirm method in javascript

    I don't think there is. :(

    --
    S. Justin Gengo
    Web Developer / Programmer

    Free Code Library At:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche


    "Jenet" <Jenet@yahoo.com> wrote in message
    news:eGjYzw6SDHA.2188@TK2MSFTNGP10.phx.gbl...
    > Is there a way to set the default option to 'Cancel' rather than 'Ok' in
    > Javascript confirm method?
    >
    > cmdDelete.Attributes.Add("onClick", "javascript:return confirm('Are You
    Sure
    > You Wish To Delete This Item ?');")
    >
    > Thanks.
    >
    >

    S. Justin Gengo Guest

  4. #3

    Default Re: confirm method in javascript

    No.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    [url]http://www.takempis.com[/url]
    Big things are made up of
    lots of little things.

    "Jenet" <Jenet@yahoo.com> wrote in message
    news:eGjYzw6SDHA.2188@TK2MSFTNGP10.phx.gbl...
    > Is there a way to set the default option to 'Cancel' rather than 'Ok' in
    > Javascript confirm method?
    >
    > cmdDelete.Attributes.Add("onClick", "javascript:return confirm('Are You
    Sure
    > You Wish To Delete This Item ?');")
    >
    > Thanks.
    >
    >

    Kevin Spencer Guest

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