Skip to content

Using the page visibility Api to determine whether a tab is visible or hidden.

License

Notifications You must be signed in to change notification settings

Jem20/PageVisibilityAPI-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

PageVisibilityAPI-Test

This is purely just to test the "visibiltychange" event. It isn't meant to be anything advanced.

Using the page visibility API to determine whether a page is visible or hidden.

  • Changes title of the tab to either hidden/visible depending on if the user goes to another page, goes back to the page, etc.
  • Logs it inside the console (use inspect element to view the console) to either hidden or visible.

Website can be found here: https://jem20.github.io/PageVisibilityAPI-Test/

About

Using the page visibility Api to determine whether a tab is visible or hidden.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages