DHTMLX Docs & Samples Explorer

Usage example

<html>
<head>
	<title>dhtmlxMessage</title>
</head>
<script type="text/javascript">
	dhtmlx = {};
</script>
<script type="text/javascript" src="../codebase/message.js"></script>
<style>
	.error{
		background-color: #ffd4db !important;
		color:maroon !important;
	}
</style>
<body>
	<script type="text/javascript">
		dhtmlx.message.defPosition="top";
		dhtmlx.message("Your data has been successfully saved!");
		dhtmlx.message({
			text:"Sending notification email...",
			id:"s2"
		});
		dhtmlx.message({
			text:"An error has occured.<br /> Please, see the log file!",
			id:"s3",
                        lifetime:1000,
			type:"error"
		});
	</script>
</body>
 
</html>