chrome.browser
Description: |
Use the chrome.browser API to interact with the Chrome browser
associated with the current application and Chrome profile.
|
Availability: |
Since Chrome 42.
|
Permissions: |
"browser"
|
Summary
Methods | |
---|---|
openTab −
chrome.browser.openTab(object options, function callback)
|
Methods
openTab
chrome.browser.openTab(object options, function callback)
Opens a new tab in a browser window associated with the current application and Chrome profile. If no browser window for the Chrome profile is opened, a new one is opened prior to creating the new tab.
Parameters | |||||
---|---|---|---|---|---|
object | options |
Configures how the tab should be opened.
|
|||
function | (optional) callback |
Called when the tab was successfully created, or failed to be created. If failed, runtime.lastError will be set. If you specify the callback parameter, it should be a function that looks like this: function() {...};
|