This library was extracted from the code of DHTMLX suite.
The library can be used under terms of MIT license (basically free).
Only 4kb gzipped, without external dependencies.
dhtmlx.confirm({
type:"confirm",
text: "Continue?",
callback: function(result){
dhtmlx.message("Result: "+result);
}
});
//or
dhtmlx.confirm("Continue?");
dhtmlx.alert({
text: "Download is completed.",
callback: function(){
dhtmlx.message("Alert clicked");
}
});
//or
dhtmlx.alert("Download is completed.");