Doing things depending of the action in a web page with Jquery.
Posted
by l2mt
on Stack Overflow
See other posts from Stack Overflow
or by l2mt
Published on 2010-05-14T02:59:35Z
Indexed on
2010/05/14
3:04 UTC
Read the original article
Hit count: 288
Hi... Anyone know how to do this:
When some user left my site by closing the browser or tab or going to other site I would like to do an action (show an alert) and if the user clicks on a link or button to other page of my own site I would like to do another action...
If I use unload event I can't differentiate between these two kind of behavior of the user... please help because I really need it.
Thanks for the help.
© Stack Overflow or respective owner