Is there any DOM event for when the browser tab loses/gains focus? I know there are the blur and focus events on window, but they also
blur
focus
window
The closest thing I believe you'll find is the top answer here:
Is there a way track the focus on tab with Javascript?