I want to do something when a tab is activated
onvisibilitychange
fires when a page is activated
and de-activated
I need only the first option, something like:
document.onactivate = function(){
console.log("index.php is visible");
};
Any help?