Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

if browsertab is active jquery

document.addEventListener('visibilitychange', function() {
	if(document.hidden)
		console.log('Page is hidden from user view');
	else
		console.log('Page is in user view');
});
Source by usefulangle.com #
 
PREVIOUS NEXT
Tagged: #browsertab #active #jquery
ADD COMMENT
Topic
Name
8+7 =