Javascript浏览器关闭事件且未刷新. [英] Javascript browser close event and not refreshing.
本文介绍了Javascript浏览器关闭事件且未刷新.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何创建仅在关闭页面时而不刷新时才发生的功能?
How to create a function which happens -only- when the page is closed and not when it refreshes?
推荐答案
^ ]
检测通过单击[X]按钮关闭的浏览器 [ http://msdn.microsoft.com/en-us/library/ms178472.aspx [ ^ ]
Window Close Event of Browser[^]
Detect browser closing through clicks on the [X] button[^]
For server side:
http://msdn.microsoft.com/en-us/library/ms178472.aspx[^]
这篇关于Javascript浏览器关闭事件且未刷新.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文