dimanche 28 juin 2015

How to detect "leave a page" exactly if user opens other page in new tab? [duplicate]

This question already has an answer here:

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.

Aucun commentaire:

Enregistrer un commentaire