← All tutorials

GoCareerGo Tutorials

HTML Tutorial

Tags, attributes, HTML5 APIs and semantic markup — the web's foundation.

Page Visibility API

Detecting when a tab is hidden or visible.

Quick-reference summary — a full handcrafted walkthrough is coming soon for this topic.

Detecting when a tab is hidden or visible.

  • Category: HTML API — part of the HTML Tutorial on GoCareerGo
  • Read the short summary above, then check the linked docs for full syntax/behaviour
  • Interview tip: be ready to explain "Page Visibility API" in one sentence, then back it up with a tiny example
<!-- Page Visibility API -->
<div>
  <!-- see MDN for the full attribute/tag reference -->
</div>
Tip

Quick recall: "Page Visibility API" — detecting when a tab is hidden or visible.