onswitch from tab do something jquery code example
Example: onswitch from tab do something jquery
$(window).blur(function(e) {
alert('You have moved from this tab/window.');
});
$(window).blur(function(e) {
alert('You have moved from this tab/window.');
});