id - (string) the window id.
title - (string) the text of the header (by default, 'Alert').
type - the subtype of the window or a custom css class. The default value for the window - 'alert'.
Available values depend on the type of initialization:
common - ('alert', 'alert-warning', 'alert-error') defines a subtype of the window.
window-related - ('alert', 'alert-warning', 'alert-error' or string) defines a subtype or a custom css class.
text - (string) the text of the window body.
ok - (string) the text of the 'Ok' button.
callback - (function) the function called on button click. Takes 'true' as the parameter.
//common initialization
dhtmlx.message({
title: "Close",
type: "alert-warning",
text: "You can't close this window!",
callback: function() {dhtmlx.alert("Test alert");}
})
//window-related initialization
dhtmlx.alert({
text: "Download is completed.",
callback: function() {dhtmlx.alert("Test alert");}
})
dhtmlx.alert("someText");