I need a help with this function onunload
.
What I want is to differentiate those events close window and refresh page on Internet Explorer and Firefox because on Google Chrome work fine.
To explain the issue, when I close a window and refresh a page on Internet Explorer or Firefox the function onunload
is called; but in Google Chrome, only when you close windows.
Also I use the event onbeforeunload
but the same issue occurs.
So the question is, how can I differentiate those event in Firefox and Internet Explorer? Is this possible?
I will be grateful with your help or some information about this issue.