Notifier

Unobtrusive notification messages can be used to give feedback to users.
Looking for a commercial license ? Keep your source code proprietary and Buy a Commercial License Today!

All of AlertifyJS animation/transition effects are disabled due to user preference that the system minimizes the amount of animation or motion it uses. See prefers-reduced-motion CSS media feature.

push ( content, wait ) chainable


Description: Shows the notification message

Parameters:

@content {String or DOMElement} (Optional) The notification message content

@wait {Number} The time (in seconds) to wait before the notification is auto-dismissed. 0 will keep it open till clicked.

 var nagCount = 2;
 var msg = alertify.message('Nagging message!',0, function(){
                if(--nagCount > 0){
                   setTimeout(function(){msg.push("I'm back :P ");}, 500);
                }else{
                   setTimeout(function(){msg.push("Ok! last time :)");}, 500);
                   msg.callback = null;
                }
           });