jQuery MessageBox release
First public release
29 April 2015
A pretty looking alternative to Javascript’s window.alert(), window.confirm() and window.prompt() functions.
There are plenty of similar plugins, but I wanted something different and modern which takes advantage of the jQuery Promise interface, giving a structured feeling to the code using it:
$.MessageBox({
buttonDone : "Yes",
buttonFail : "No",
message : "Would you like to continue ..... ?"
}).done(function(){
// Do something here
}).fail(function(){
// Don't continue, maybe do something else
});
Download and documentation
Go to the Lab page: MessageBox