jeudi 3 juillet 2014

Query database on beforeunload event


Vote count:

0




I was wondering if its possible to send a query to the database on the beforeunload event.



$(window).on('beforeunload',function() {
console.log('beforeunload called. run query');
});


If so, how would I do it? I need to run a query to insert dynamic values into the database.



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire