Last updated on

Detect if the tab is hidden or visible


Detect if the document is currently hidden (which means, not active. e.g. user currently has a different tab open)

document.hidden

https://developer.mozilla.org/en-US/docs/Web/API/Document/hidden

what's this?

This is an implementation of the Open Heart Protocol.
Feel free to send a reaction for this page. ☺️