Web Developer
I want to make an Ajax call on page unload event, but I’m facing a problem to implement it.
Hi Jaimin,
Try the below code.
$(window).on('unload', function () { var fd = new FormData(); fd.append('UserId', UserId); navigator.sendBeacon("Your_Url", fd); });
Auto Sync....
Select Categories