开发者

Javascript onclose event

开发者 https://www.devze.com 2023-03-15 21:38 出处:网络
How can I run javascript when user close the browser. I 开发者_StackOverflowtried to use \'onunload\', but it calls every time I press F5/refresh button?

How can I run javascript when user close the browser. I 开发者_StackOverflowtried to use 'onunload', but it calls every time I press F5/refresh button? Thanks


As far as the Javascript on the page is concerned, there's no difference between closing the browser, navigating to another page or refreshing the same page.

0

精彩评论

暂无评论...
验证码 换一张
取 消