Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

js check tab active

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

PREVIOUS NEXT
Code Example
Javascript :: javascript access php variable 
Javascript :: falsy javascript 
Javascript :: how to push only unique values in array in javascript 
Javascript :: javascript from method 
Javascript :: pdf table files download react not working 
Javascript :: clear input field react-hook-form 
Javascript :: ant design not working in react js 
Javascript :: refresh datatable on button click with maintaining paging 
Javascript :: fetch patch method 
Javascript :: javascript get list of files in directory 
Javascript :: javascript remove duplicate letters in a string 
Javascript :: merge data to json js 
Javascript :: destructuring dynamic properties 
Javascript :: Get React Native View width and height 
Javascript :: safeareaview react native 
Javascript :: how to fetch the all input element id value 
Javascript :: set variable to object without editing old object js 
Javascript :: css div at bottom of div 
Javascript :: jquery index of element 
Javascript :: proactive vs reactive 
Javascript :: should i use google pay 
Javascript :: can filter be used on objects in javascript 
Javascript :: discord.js add button to message 
Javascript :: how to update kali linux on virtualbox 
Javascript :: javascript if input number empty then make 0 
Javascript :: jquery insertafter 
Javascript :: cannot use import statement outside a module in jest 
Javascript :: react img 
Javascript :: sequelize delete item 
Javascript :: jquery see if checkbox is checked 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =