OnSwitch z Tab Zrób coś jquery

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