how to popup modal before window close?
<p>I am using a fancybox jquery plugin, what i need is to make sure before the website close a modal popup up and get us the details for submission to a form. </p>

<p>Please let us know how to make sure that before close a website a modal box fires up.</p>

<p>Have tried using unload method. It works when you use return but in return you can not use a form.</p>

<p>Please help!</p>
