Switch the browser tab and check the browser title; it will change to this document's current visibilityState!

Tab Visibility using JQuery

			$(document).ready(function(){
$(window).blur(function(){
document.title = 'Inactive';
});
$(window).focus(function(){
document.title = 'Active';
});
});