I am working on mobile browser about 3 months and now i have a boring problem with beforeunload and onload. In two situation they do not work clearly. When I close the tab, the browser often calls them. But while user closes the browser with some routine why doesn't it trigger these events at all? What is the problem?