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.

setContent ( content ) chainable


Description: Sets the notification message contents

Parameters:

@content {String or DOMElement} The notification message content

 var duration = 10;
 var msg = alertify.message('Auto-dismiss in '+ duration +' seconds.', 10, function(){ clearInterval(interval);});
 var interval = setInterval(function(){
    msg.setContent('Auto-dismiss in '+(--duration)+' seconds.');
 },1000);