I have a button with a href that sends data, and before that I want to show a popup using Bootbox.js
HTML:
<a href="submit?result=something"> 
  <button class="alert btn btn-primary" type="button">Submit</button>
</a>
JS:
$('alert').click(function(){
    bootbox.alert("Submitted!", function() {
        console.log("Alert Callback");
    });
});
This just performs the href action so it does not display the popup using Bootbox.js. Is there a way to perform a function and perform the href right after you close this?
For reference: http://bootboxjs.com
 
     
    