How to logout during onbeforeunload/onunload using Javascript

后端 未结 1 451


        
1条回答
  •  攒了一身酷
    2020-12-21 20:49

    So, I've figured out some issues with my question with the help of Sunil D. The onunload event fires too quickly for my event to be triggered, so I've decided not to include a warning message, but just log the user off all together using the onbeforeunload event:

    
    

    0 讨论(0)
提交回复
热议问题