How can I ask a web user for confirmation if he really wants to leave the page?
<p>How can I ask the user <em>Are you sure you want to leave the page?</em></p>

<p>Like for example if you click the back button while asking a question on Stackoverflow?</p>
