title: jquery: unload or beforeunload?
body: <p>I want to post an message to the server when user navigate off from the current page, I am using .unload right now but the result is unreliable, even in its document is said true:</p>
  
  <blockquote>
    <p>The exact handling of the unload event
    has varied from version to version of
    browsers. For example, some versions
    of Firefox trigger the event when a
    link is followed, but not when the
    window is closed. In practical usage,
    behavior should be tested on all
    supported browsers, and contrasted
    with the proprietary beforeunload
    event.</p>
  </blockquote>
  
  <p>Should I use beforeunload event? Is it reliable?</p>