Compare that to the code you'd have to write without Bootbox:
These methods all invoke a fourth method, dialog, which allows you to create your own modals with any number of buttons and event handlers.
Please Note that these demos are extremely crude—please feel free to fork the project and improve them. You can view the source for this demo page to get a better understanding of the minimal code required to show each dialog.
Very few of the buttons will appear to do anything other than dismiss the dialog—be sure to view your browser's console output for some useful debug information.
The latest stable version of bootbox is v2.5.1. You can download the minified library bootbox.min.js for use in production, or the uncompressed bootbox.js for use in development. I wouldn’t recommend hotlinking to either file as Github does not serve the correct mime type which may cause unexpected issues.
In rough DOM order: