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