I am using Sweet Alert for a popup on my product view in an E-commerce Application with two buttons: one for going on cart View and another for reloading the vi
It is allowOutsideClick: false for example
swal({ title: "View Cart", text: "Are you sure?", type: "warning", showCancelButton : true, confirmButtonColor : "#ff0000", confirmButtonText : "Yes", allowOutsideClick: false, CancelButtonText : "No" }, function() //confirm { //if Yes do this } );