Alertify is an unobtrusive customizable JavaScript notification system.
- Fully customizable alert, confirm and prompt dialogs
- Fully customizable unobtrusive notification system
- Callback parameter handling both OK and Cancel button clicks
- Chaining which allows queued dialogs
http://fabien-d.github.com/alertify.js/
alertify.log( message, type );
shorthand available to "success" and "error"
alertify.success( message ); // same as alertify.log( message, "success" );
alertify.error( message ); // same as alertify.log( message, "error" );
extend method allows for custom methods
alertify.custom = alertify.extend( "custom" );
alertify.custom( message ); // same as alertify.log( message, "custom" );
alertify.alert( message, function () {
//after clicking OK
});
alertify.confirm( message, function (e) {
if (e) {
//after clicking OK
} else {
//after clicking Cancel
}
});
alertify.prompt( message, function (e, str) {
if (e) {
// after clicking OK
// str is the value from the textbox
} else {
// after clicking Cancel
}
});
alertify.alert(...).confirm(...)...
- Microsoft Internet Explorer 7+ (Standards Mode)
- Google Chrome
- Mozilla FireFox
- Apple Safari
- Opera
- iOS
- Android
Currently in development, not yet fully tested.
Alertify is licensed under MIT http://www.opensource.org/licenses/MIT
Copyright (c) 2012, Fabien Doiron [email protected]