How to use visibilitychange instead of beforeunload?

后端 未结 0 1275
[愿得一人]
[愿得一人] 2020-12-29 03:03

I need my webapp to send an insert statement when the browser or tab is closed.

I am currently using the code below:


function onExit() {

    var fd =         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题