title: beforeunload custom dialog
body: <p>I am using a CMS for my site and am checking if the content has been modified before the location of the window is changed. Now I already know about the</p>
  <pre><code>$(window).bind('beforeunload', function() {
       return &quot;dialog message&quot;;
  });
  </code></pre>
  <p>method, but I found a plugin called <a href="http://thrivingkings.com/read/Apprise-The-attractive-alert-alternative-for-jQuery" rel="nofollow noreferrer">Apprise</a> and want to replace the default dialog with one of these. Is this possible?</p>