Onswitch from tab fait quelque chose jQuery
$(window).blur(function(e) {
alert('You have moved from this tab/window.');
});
godfreysseki
$(window).blur(function(e) {
alert('You have moved from this tab/window.');
});