Tuesday, 20 August 2019

beforeunload event is not working in Safari

I want to clear session value or remove session value when a user leaves a particular page. For that I had written this condition, it works in all browsers except Safari.

$(window).on("beforeunload", function()
{
   $.session.remove('visited');
});

Is there an alternative in Safari?



from beforeunload event is not working in Safari

No comments:

Post a Comment