Answers for "tab active check"

6

tab active check

let browser_active = ((typeof document.hasFocus != 'undefined' ? document.hasFocus() : 1) ? 1 : 0);
if (!browser_active) {
 // active
}
Posted by: Guest on April-08-2022

Code answers related to "tab active check"

Code answers related to "Javascript"

Browse Popular Code Answers by Language