The IdleDetector API is used to notify a webpage of the user’s idle, active, and locked state.
IdleDetector