Answer (1 of 2): $(window).on('beforeunload', function(){ // your logic here}); This event will trigger before page refreshes. So you need to store a cookie.
確定! 回上一頁