js Message

Custom notifications, alerts, confirmations

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.

Examples

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.");

See it in action


Skin
Message
Alert
Confirm
Modal Box