Execute a method upon clicking stay on page in confirmation dialog on browser close
<p>I got to know how we can get a popup when the user tries to close the browser. Now my question how can we execute some piece of code if the user says 'Stay on page'? is there any click handler for that button? </p>
