alertifyjs simple tutorial code example

Example 1: jquery alertify

/*
 * @message {String or DOMElement} The dialog contents.
 *
 * alertify.alert(message);
 *
 */
 alertify.alert('Alert Message!');

Example 2: jquery alertify

//get the closable setting value.
var closable = alertify.alert().setting('closable');
//grab the dialog instance using its parameter-less constructor then set multiple settings at once.
alertify.alert()
  .setting({
    'label':'Agree',
    'message': 'This dialog is : ' + (closable ? ' ' : ' not ') + 'closable.' ,
    'onok': function(){ alertify.success('Great');}
  }).show();