Answer the question
In order to leave comments, you need to log in
How to make an action in chrome if a tab is active?
How to show an alert if I click on a tab with a website?
Answer the question
In order to leave comments, you need to log in
Would this option work?
document.addEventListener("visibilitychange", function() {
document.visibilityState === 'visible' && alert('Показываю алерт');
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question