title: detect if your website run in background
body: <p>is there a way to detect if my website runing in background ,
  for example : my website is open in browser but the user standing on the other tab 
  youtube for example.</p>