jquery - javascript detect browser close tab/close browser -


is there cross browser javascript/jquery code detect if browser or browser tab closing? , should not activate event when go other link?

if correctly, want know when tab/window closed. well, afaik way in javascript detect kind of stuffs onunload & onbeforeunload events.

unfortunately (or fortunately?), events fired when leave site on link or browsers button. best answer can give, don't think can natively detect pure close in javascript. correct me if i'm wrong here.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -