Alternatives To Window.onbeforeunload For Sending Data?
The AJAX function below accesses my PHP script. The intention was to delete blank MySQL entries when the user closes the page. window.onbeforeunload would have been perfect to achi
Solution 1:
This is not dependable. If the user loses their connection no data will be sent. You're better off running a Cron job to clean up left-over data.
Post a Comment for "Alternatives To Window.onbeforeunload For Sending Data?"