title: How to detect a close of a browser using javascript or jquery
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1143194/handle-browser-close-in-javascript">Handle Browser close in JavaScript?</a>  </p>
  </blockquote>
  
  
  
  <p>How to detect a close of a browser using javascript or jquery, I got the window.onbeforeUnload and $(window).unload() of javascript and jquery respectively, but that even gets called on leaving of page,and etc... but i need only and only the close event, nothing  else and only that.</p>