Unobtrusive notification messages can be used to give feedback to users.

setContent ( content ) chainable

Description: Sets the notification message contents


@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.');

Looking for a commercial license ? Keep your source code proprietary and Buy a Commercial License Today!