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.

ondismiss { Function }


Description: Sets or gets the callback function to be invoked before dismissing the notification [ if the invocation result === false , notification dismissal will be canceled ].

Default: undefined

 var canDismiss = false;
 var notification = alertify.success('You can dismiss this after 5 seconds!');
 notification.ondismiss = function(){ return canDismiss; };
 setTimeout(function(){ canDismiss = true;}, 5000);