Force mouse click on popup window
<p>I have a simple project but i'm newbie in javascript,
what I need is to force mouse to click on a dialog when the user leaves the page</p>

<p><img src="http://i.stack.imgur.com/1Wkp3.png" alt="Confirm dialog on leaving page"></p>

<p>how to do that?</p>
