如何在window.onbeforeunload上调用logout [英] How do I call logout on window.onbeforeunload

查看:209
本文介绍了如何在window.onbeforeunload上调用logout的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页,在注销时我需要输入注销时间到databse ..我已经完成,直到我的问题是当用户关闭窗口时我无法输入数据库的值。 。我试过窗口.onbeforeunload burt我无法调用里面的按钮点击事件。任何想法???

i have a webpage and on logout i need to enter the logout time to databse..i have done till that my problem is when user closes window i can't enter the value to database. . i tried window .onbeforeunload burt am not able to call the button click event inside that . Any Idea???

推荐答案

这篇关于如何在window.onbeforeunload上调用logout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆