Report question

Question: How to know if a page is currently being read by the user with Javascript?