title: How to detect previous or inactive tabs in Chrome extension?
body: <p>Is there any way to detect previous tabs in Javascript? I'm making a Chrome Extension in which whenever I change the tab it should detect. Whenever I go to or open new tab it detects but when I go back to the previous tab, it doesn't detect.</p>