Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

tab active check

let browser_active = ((typeof document.hasFocus != 'undefined' ? document.hasFocus() : 1) ? 1 : 0);
if (!browser_active) {
 // active
} 
Comment

PREVIOUS NEXT
Code Example
Javascript :: js window active 
Javascript :: how get checkbox if checked in jquery 
Javascript :: wait for element to load 
Javascript :: nested shorthand if javascript 
Javascript :: javascript rtsp player 
Javascript :: for of with index 
Javascript :: how to divide array in chunks 
Javascript :: javascript url decode online 
Javascript :: get parent id javascript 
Javascript :: formdata append react js 
Javascript :: discord js fetch user 
Javascript :: js click element 
Javascript :: define array with custom index javascript 
Javascript :: toggle in react 
Javascript :: buffer from base64 
Javascript :: javascript innerwidth 
Javascript :: JavaScript Built-in Constructors 
Javascript :: javascript how to check if object property exists 
Javascript :: new jsonobject java 
Javascript :: javascript change dataset value 
Javascript :: flutter access json object inside object 
Javascript :: xmlhttprequest get request 
Javascript :: auto closing parenthese not working on vscode 
Javascript :: usereducer hook react 
Javascript :: TypeError: (0 , T.useState) is not a function 
Javascript :: how to get ip address javascript 
Javascript :: javascript play audio 
Javascript :: insert image in react 
Javascript :: javascript sum of array 
Javascript :: when does localstorage get cleared 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =