How to prevent users from moving pages?
<p>I know somethings like this;</p>

<pre><code>&lt;script&gt;
function out()  {
    alert('No, stay here.');
    //What to do?...
}
&lt;/script&gt;

&lt;body onUnload="out()"&gt;
&lt;input /&gt;
&lt;/body&gt;
</code></pre>

<p>I got some response from other community</p>

<pre><code>&lt;script&gt;
function out()  {
    alert('No, stay here.');
    location.href='thisPage.html';
}
</code></pre>

<p>But this will reload the page. I want to prevent users from moving pages without reloading page. Thank you</p>
