mercredi 29 avril 2015

I need catch just windows close event [duplicate]

This question already has an answer here:

I need a javascript event that I can run a fuction when the user close the browser. I try to use "onBeforeUnload" but if I use jquey.onload (ajax) or refresh the page, javascript catch the event too. I only need run the funtion when the user close the browser. There are any form to do it??




Aucun commentaire:

Enregistrer un commentaire