Not TestedTesting not done, may not work properly
Browser Features

Page Visibility API

Detect when the browser tab is hidden or backgrounded.

Checking support...
Advertisement

Interactive Input Workspace

Ready for input

Web API Execution Output

Result output will be displayed here after processing...

Native JavaScript Code Example (Zero Libraries)

document.addEventListener('visibilitychange', () => {
  console.log(document.hidden);
});

About the Page Visibility API Web API

Page Visibility API lets you determine current visibility state of a page.

Specification:W3C & WHATWG Web API Standard
Sponsored Content