W3cubDocs

/Web Extensions

browserSettings.newTabPageOverride

A BrowserSetting object that can be used to get a string representing the URL for the "new tab" page: that is, the page that's loaded when the user opens a new empty tab.

Note that this is a read-only setting.

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
newTabPageOverride
No
No
57
?
No
No
?
?
57
?
?
?

Examples

Get the current value of the new tab URL:

browser.browserSettings.newTabPageOverride.get({}).then(result => {
  console.log(result.value);
});

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browserSettings/newTabPageOverride