We have an administrative portal that our teachers constantly forget to download their latest PDF instructions before logging out and/or closing the browser window. 开发者_如何学运维I have looked arou
is there a way differentiate between refresh and close in Javascr开发者_开发技巧ipt? i use window.onbeforeunload now which works great in IE. To void this being called anywhere but close, i set a flag