Identifying Between Refresh And Close Browser Actions

前端 未结 13 1411
孤街浪徒
孤街浪徒 2020-11-22 15:29

When we refresh the page (F5, or icon in browser), it will first trigger ONUNLOAD event. When we close the browser (X on right top icon),It will trigger ONUNLOAD event. Now

13条回答
  •  误落风尘
    2020-11-22 15:52

    
    
    
    
    
    

提交回复
热议问题