window.onunload = function () { var r = confirm( "Press a button!" ) if ( r == true ) { alert( "You pressed OK!" ) } else { alert( "You pressed Cancel!" ) } };
<input type="submit" value="Show" onclick="if(confirm('Are you sure ,You want to delete this?')){return true;}else{return false;}" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)