I am messing around with some web pages and was wondering if it is possible to tell if my page is not the active page on a web browser. I am looking to tell if my page is minimized or is not the current tab. I am not asking about a particular language, but more just wondering if it is possible to get this sort of information.
Share
Yes, its totally possible, with javascript.
See these answers:
Determine whether webpage has foreground window focus/is active tab?
How to tell if browser/tab is active
Is there a way to detect if a browser window is not currently active?