"SweetAlert for Bootstrap"
Bootstrap 3.2.0 Snippet by ali110

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <script src="http://lipis.github.io/bootstrap-sweetalert/lib/sweet-alert.js"></script> <link rel="stylesheet" href="http://lipis.github.io/bootstrap-sweetalert/lib/sweet-alert.css"> <div class="examples"> <button class="btn btn-lg btn-success sweet-12" onclick="_gaq.push(['_trackEvent', 'example, 'try', 'Success']);">Success</button> </div>
document.querySelector('.sweet-12').onclick = function(){ swal({ title: "Are you sure?", text: "You will not be able to recover this imaginary file!", type: "success", showCancelButton: true, confirmButtonClass: 'btn-success', confirmButtonText: 'Success!' }); };

Related: See More


Questions / Comments: