title: Using jQuery promise to simulate synchronous call
body: <p>I've been using the <a href="http://bootboxjs.com" rel="noreferrer">bootbox.js</a> library, which operates asynchronously, but I have a need to use it in a synchronous way (for example, putting up a "confirm" window before submitting a form). </p>
  
  <p><strong>I don't want to use <code>e.preventDefault()</code> to cancel the event</strong>, I want to defer the action until the user has responded to the modal. Currently the library doesn't support it, but I am curious if synchronous behavior could be simulated by using promises?</p>
  
  <p>Here's a very basic example, using a link (instead of a form submit button, which is my final goal):
  <a href="http://plnkr.co/edit/5NovsuKTeQ7y6SKNTwWp?p=preview" rel="noreferrer">http://plnkr.co/edit/5NovsuKTeQ7y6SKNTwWp?p=preview</a></p>