1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

message box yes no

Discussion in 'JavaScript' started by exoskeleton, Jul 5, 2012.

  1. #1
    masters good day... im using php but i incorporate jscript.. can you help me with message box YES/NO?

    i had tride alert ("do you want to delete?");

    i know there is something missing to show the buttons YES and NO... can you help me guys ?

    tnx in advance..
     
    exoskeleton, Jul 5, 2012 IP
  2. Unni krishnan

    Unni krishnan Peon

    Messages:
    237
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    0
    #2
    You can use a Confirm box.
    The user will have to click either "OK" or "Cancel" to proceed.
    
    var userInput = confirm("Please confirm your action");
    if (userInput == true) {
      x="You pressed OK";
    } else  {
      x="You pressed Cancel";
    }
    
    Code (markup):
    If you want a 'Yes' / 'No' option you can try the jQuery UI dialog instead.
     
    Unni krishnan, Jul 5, 2012 IP
  3. Irfi0009

    Irfi0009 Banned

    Messages:
    17,584
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    48
    #3
    what are you mean friend tell me again
     
    Irfi0009, Jul 11, 2012 IP