Bootbox.js – A small JavaScript library to create programmatic dialog boxes using Bootstrap’s modals

Javascript / Added on January 23, 2013 / Add to favorites

Originally created in 2011, Bootbox.js is a small JavaScript library that allows you to create programmatic dialog boxes using Twitter’s Bootstrap modals, without having to worry about creating, managing or removing any of the required DOM elements or JS event handlers.
The library exposes three methods designed to mimic Bootstraps native JavaScript equivalents:

bootbox.alert(message, callback)
bootbox.prompt(message, callback)
bootbox.confirm(message, callback)

Their exact method signatures are flexible as each can take various parameters to customize labels and specify defaults.