Link to anchor (ajax url) doesn't call onBeforeUnload
<p>I have an onbeforeunload event :</p>

<pre><code>$().ready(function() { 
  window.onbeforeunload=function() { return "haha" };
});
</code></pre>

<p>And my links are like this (ajax web site) :</p>

<pre><code>&lt;a href="#pageX" /&gt; 
</code></pre>

<p>But the onbeforeunload is never called. What can i do ?</p>

<p>Thanks</p>
