How To Call Ajax While Using window.onbeforeunload

Hi Friends, Two days ago I was working on a project in which I needed to call one file on when user close browser, or leave current page and go to another page or use back button of browser etc..…

Hi Friends, Two days ago I was working on a project in which I needed to call one file on when user close browser, or leave current page and go to another page or use back button of browser etc..…