Any way to identify browser tab in JavaScript? - Stack Overflow
Aug 10, 2012 · Here's a way to have the tabId available after the page was loaded - having the same tabId even after refresh. This also solves the issue of duplicate tabs, as the tabId is cleared from the sessionStorage.