Say I make a program and run it on chrome, then switch tabs.
Or what if I open my javascript app, then switch apps, while having mine in the background.
Is there way to tell if the program is on foreground or background in javascript?
Thanks, this would really help.