title: How to use Impromptu as an confirm alert
body: <p>I want to use Impromptu alert box as an confirm box when I reload my page.
  Right now I am using this normal javascript.</p>
  
  <pre><code>window.onbeforeunload = function(event) {
      return confirm("Confirm refresh");
  };
  </code></pre>
  
  <p>However I no longer want to use this, so is there any chance to load Impromptu  confirm box on page reload?</p>
  
  <p>Thanks in advance</p>