TIL difference between document.hidden vs document.hasFocus()
POSTED ON:
TAGS: javascript visibility stackoverflow
Do you need to check if the tab is currently active/visible?
document.hidden
: returns true if website running it is not VISIBLE
document.hasFocus()
: returns true if tab is currently running AND browser is in focus by computer
REFERENCE:
Stack Overflow
Related TILs
Tagged: javascript