confirm box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ram09
    New Member
    • Oct 2008
    • 45

    confirm box

    is it possible to handle the event of the buttons ok and cancel in the confirm box??? and how can i do that?? im using asp.net and i dont know how to handle
    this buttons...tnx
  • Rsmastermind
    New Member
    • Sep 2008
    • 93

    #2
    Take a variable in the function abc like this:
    Code:
    function abc(){
    var answer=confirm("Do you want to proceed");
    if(answer){
    Do whatever you like here in this way you can handle the confirm
    }
    
    else{
    }
    
    }

    Comment

    Working...