I have security problem that when user sing in
if he leave\\close the window before logout, I want to show alert Msg!
So that i Did,
window.onbeforeunload = function(){ return " confirm msg";}
I get the alert but Now problem Is,
If i click refresh button default operation wanna Run. (with out alert msg)
I got the answer in keyBoard but not in Can any one help me,
how to detect when the user click the Refersh button
if u have any suggestion pls post...
不幸的是,您无法判断onbeforeunload
事件是否由刷新,关闭等触发。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.