Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

js tab active

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

javascript browser tab active

let browser_active = ((typeof document.hasFocus != 'undefined' ? document.hasFocus() : 1) ? 1 : 0);
        if (!browser_active) {
          this.title = 'Окно неактивно';
        } else {
          this.title = 'Окно активно';
        }
Comment

PREVIOUS NEXT
Code Example
Javascript :: jest expect not contain 
Javascript :: js is of type array 
Javascript :: two sum javascript solution 
Javascript :: wordpress disable jquery migrate 
Javascript :: ifsc code validation regex 
Javascript :: .join in javascript 
Javascript :: node module es6 
Javascript :: how to replace strings with react components 
Javascript :: npm react copy to clipboard 
Javascript :: javascript how to sort alphabetically 
Javascript :: node print variable 
Javascript :: header logo react native img 
Javascript :: json stringify close circle 
Javascript :: how to assign value to variable 
Javascript :: set timeout for loop 
Javascript :: detect livewire is loading in javascript 
Javascript :: javascript convert object to querystring 
Javascript :: spawn template playcanvas 
Javascript :: get data attribute javascript 
Javascript :: jquery child selector 
Javascript :: angular disable click 
Javascript :: javascript object.assign 
Javascript :: round decimal js 
Javascript :: vue mounted 
Javascript :: jq each loop 
Javascript :: jquery check if element is hidden 
Javascript :: Bots member count discord js 
Javascript :: .net mvc javascript function call link 
Javascript :: await in react in function component 
Javascript :: how to install vue 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =