How do I create my own confirm Dialog?
<p>The confirm box only has two options: ok and cancel.</p>

<p>I'd like to make one myself, so I can add a third button: save and continue. But the issue I currently don't know how to solve, is that: once the custom confirm dialog is up, how do I block the previously running script (or navigation) from running? and then how do I make the buttons return values for the confirmation?</p>

<p>my understanding of the confirm dialog box is this: 
it's a visual boolean, that has the power to block navigation and scripts on a page. So, how do I emulate that?</p>
