Yes and no.
If you mean can you advance to the next tab using JavaScript within a website: If you did not open the other tabs via window.open
(e.g. trying to advance to another tab that was not opened directly from the current website), then no, it is not possible. If it were possible it would be a security risk and give attackers another vector to "ID" a user or potentially find a way to gain access to information about the other tabs a user has open.
If you did open the tabs within the website, you can focus to them:
var newTabs = [];
newTabs.push( window.open("https://example.com", "_blank") );
// Add more tabs?
// Sorry, no way to figure out what the "next" tab is in the
// browser's list of tabs via straight on-site JavaScript,
// just go by next index in the array...
newTabs[0].focus();
If you are referring to Chrome browser extension that you are working on then, yes, you can advance to the next tab using the Tabs API. NOTE: This may not work, I did not test it but seems to fit with the documentation and examples I have seen. If you try and find a better solution let me know and I will update):
// Query current active tab in the current active window:
chrome.tabs.query({currentWindow: true, active: true}, function(tabsArray) {
// If there are fewer than 2 tabs, you are on the only tab available.
// Nothing left to do.
if( tabsArray.length < 2 ) return;
// Else query tab with incremented index (e.g. next tab):
chrome.tabs.query({index: (tabsArray[0].index+1)}, function(nextTabsArray){
// There is no next tab (only 1 tab or user is on last tab)
if( nextTabsArray.length < 1 ) return;
// Else, yay! There is a next tab, lets go!
chrome.tabs.update(nextTabsArray[0].id, {active: true})
});
});