|
Hi all,
I am trying to find out what ways there are to find out the window browser is closing. For example, you could click on the "X" on the top right of your window, you could press alt + f4 keys together and you could also right-click and close on your task on the taskbar below.
So how do you track ight-click and close on your task on the taskbar below? I could use the body onunload, but it also detects when i refresh the page or move to another page. I only want to clear an element when the window browser is closed. Any suggestions? Thanks!
|