58
rated 0 times
[
64]
[
6]
/ answers: 1 / hits: 34314
/ 11 Years ago, wed, june 19, 2013, 12:00:00
I'm trying to post data when a user leaves my page. I have finally managed to find a working solution, however, it shows a confirmation dialog when the user leaves. I have tried return null;
but it didn't work. Is it possible to disable the dialog?
window.onbeforeunload = function() {
$.post(track.php, {
async: false,
refid: refid,
country: country,
type: type,
});
return '';
}
More From » jquery