title: How to detect closing of a browser in Django?
body: <p>I want to know how to detect the closing of browser and also to trigger a function based on the detection in Django web framework. Someone please guide me if possible with code snippet.</p>
  
  <p>I tried using JavaScript. It worked in Firefox but not in Chrome.</p>
  
  <p>Any help is appreciated.</p>
  
  <p>Cheers
  MAYO.</p>