The great thing with bootbox is that the line of the message you pass to it does not have to be plain text. It can be any html code. Then you can use this function to display the image from the URL in modal mode:
function showImage(url) {
bootbox.alert("Do you like my image?<br/><img src='" + url + "'>", function() {
console.log("It was awesome!");
});
};
source
share