This example uses confirm to retrieve validation. The returnvalue is handled by the promise and will be shown by an alert.
Code-example:
<script src="itsabuild-min.js"></script>
<script>
var ask = ITSA.confirm('Do you want to continue?');
ask.then(function(value) {
if (value) {
ITSA.alert('Agreed');
}
else {
ITSA.alert('Disagreed');
}
});
</script>