Thanks for your quick response! It helped!!
On Oct 21, 3:20 pm, KeeganWatkins <keeganwatk...@gmail.com> wrote: > hi lukas, > > you can't specifically listen for refreshes, but you can listen for > unload events. an unload event is dispatched when: > > - a link is clicked to navigate away from the page > - the window.location property is changed > - the tab is closed > - the browser window is closed > - etc > > to play around with it, add this to your code: > > jQuery(window).unload(function() { > alert("bye bye!"); > > }); > > note that it will fire in response to everything in the list above, > but also in response to refreshes. hope that helps. > > On Oct 21, 11:38 am, lukas <animod...@gmail.com> wrote: > > > How can I catch with Jquery a user refreshing the page with his > > browser? Thank you!