DEV Community

Discussion on: How to Detect Idle Browser Tabs with JavaScript

Collapse
 
chautelly profile image
John

I've used this API to detect if a blur event on an input was due to tabbing and prevent showing an invalidation message if the input was left in an invalid state since tabbing back will give it back it's focus.

Collapse
 
vorillaz profile image
vorillaz

That’s a great example and use case of the API. Thanks a lot for the reply John.