I wanna exploit a special case when user leaves a page
. I create a method to do something
when user leaves a page. But, if user is staying on this page, and clicks a link to open new page in new tab. So, does user leave page?
Can you tell me a hint? Thank you!
p/s: I'm using MVC 5 and I can use jQuery/javascript.