JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://fabien-d.github.io/alertify.js/assets/js/lib/alertify/alertify.min.js"></script>
<script src="http://fabien-d.github.io/alertify.js/assets/js/lib/sh/shCore.js"></script>
<script src="http://fabien-d.github.io/alertify.js/assets/js/lib/sh/shBrushJScript.js"></script>
<div id="one">click for alert
</div><br>
        <div id="two">click for confirmation
</div>

CSS

.alertify, .alertify-show, .alertify-log {
    -webkit-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
    -moz-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
    -ms-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
    -o-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
    transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
    /* easeOutBack */
}
.alertify-hide {
    -webkit-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
    -moz-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
    -ms-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
    -o-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
    transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
    /* easeInBack */
}
.alertify-log-hide {
    -webkit-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
    -moz-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
    -ms-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
    -o-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
    transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
    /* easeInBack */
}
.alertify-cover {
    position: fixed;
    z-index: 99999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color:#f5f5f5;
    opacity:0.5;
}
.alertify-cover-hidden {
    display: none;
}
.alertify {
    position: fixed;
    z-index: 99999;
    top:150px;
    left: 50%;
    width: 400px;
    margin-left: -215px;
    opacity: 1;
}
.alertify-hidden {
    -webkit-transform: translate(0, -150px);
    -moz-transform: translate(0, -150px);
    -ms-transform: translate(0, -150px);
    -o-transform: translate(0, -150px);
    transform: translate(0, -150px);
    opacity: 0;
    display: none;
}
/* overwrite display: none; for everything except IE6-8 */
 :root *> .alertify-hidden {
    display: block;
}
.alertify-logs {
    position:...

JavaScript

function myconfrm() {
     var falgset = true;
     alertify.confirm("Are you  sure to delete this record.", function (e) {
         if (e) {
             // user clicked "ok"
             falgset = false;
         }

     });
     alert(falgset);
     return falgset;
 }
 $("#one").live("click",function () {
     alertify.alert("Hello World");
 });

 $("#two").live("click",function () {
     if (myconfrm()) {
         // logic code
     }
 });