I would like to make a function to open a new tab in the second slot of google chrome for instance. I have been using the manual so I am unsure what the exact mistake is. For instance, if there are five tabs open, I want the new tab to open between the original first and second ones.
var newURL = "http://google.com/";
chrome.tabs.create({url: newURL, tabId: 2});