Welcome What's new in Chrome extensions Getting started API Reference Samples
Welcome What's new in Chrome extensions Getting started API Reference Samples

chrome.browser

This API is part of the deprecated Chrome Apps platform. Learn more about migrating your app.
  • Description

    Use the chrome.browser API to interact with the Chrome browser associated with the current application and Chrome profile.

  • Permissions
    browser
  • Availability
    Since Chrome 42.

Summary

Types

OpenTabOptions

Properties

  • url
    string

    The URL to navigate to when the new tab is initially opened.

Methods

openTab

browser.openTab(options: OpenTabOptions, callback: function)

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

  • Configures how the tab should be opened.

  • callback
    function

    Called when the tab was successfully created, or failed to be created. If failed, runtime.lastError will be set.

    The callback parameter should be a function that looks like this:

    () => {...}
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.