I need determine, if current page is active. I know i can find if tab get/lost focus with this answer:
https://stackoverflow.com/a/1760268/449553
It is ok, if tab state change, BUT i need to get initial value. There is a few ways to open page:
- going by link in this active tab
- open in new tab
- open in new background tab
I understand, that page need some time to load. So I need to get this value after DOM loaded. Is there any way to find this value?