DHTMLX Docs & Samples Explorer

### Alert

Source

    <doctype html>

    <script type="text/javascript" src='../../codebase/dhtmlxmessage.js'></script>
    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxmessage_dhx_skyblue.css">

    <script type="text/javascript">
        dhtmlx.alert("Test alert", function(result){
            dhtmlx.alert({
                title:"Custom title",
                ok:"Custom text",
                text:"Result: "+result,
                callback:function(){
                    dhtmlx.alert({
                        type:"alert-warning",
                        text:"Warning",
                        callback:function(){
                            dhtmlx.alert({
                                title:"Important!",
                                type:"alert-error",
                                text:"Error"
                            });
                        }
                    });
                }
            });
        });
    </script>