MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

This element is used for holding a set of read-only views of Web documents. It is similar to the browser element, except that multiple documents can be displayed, each in a separate tab.

Примечание: Starting in Firefox 3 (XULRunner/Gecko 1.9), this is only used in the main Firefox window and cannot be used in other XUL windows by third-party applications or extensions.

Attributes
autocompleteenabled, autocompletepopup, autoscroll, contentcontextmenu, contenttooltip, handleCtrlPageUpDown, onbookmarkgroup, onnewtab, tabmodalPromptShowing
Properties
browsers, canGoBack, canGoForward, contentDocument, contentTitle, contentViewerEdit, contentViewerFile, contentWindow, currentURI, docShell, documentCharsetInfo, homePage, markupDocumentViewer, securityUI, selectedBrowser, selectedTab, sessionHistory, tabContainer, tabs, visibleTabs, webBrowserFind, webNavigation, webProgress
Methods
addProgressListener, addTab, addTabsProgressListener,appendGroup, getBrowserAtIndex, getBrowserIndexForDocument, getBrowserForDocument, getBrowserForTab, getIcon, getNotificationBox, getTabForBrowser, getTabModalPromptBox, goBack, goBackGroup, goForward, goForwardGroup, goHome, gotoIndex, loadGroup, loadOneTab, loadTabs, loadURI, loadURIWithFlags, moveTabTo, pinTab, reload, reloadAllTabs, reloadTab, reloadWithFlags, removeAllTabsBut, removeCurrentTab, removeProgressListener, removeTab, removeTabsProgressListener,replaceGroup, selectTabAtIndex, setIcon, showOnlyTheseTabs, stop, unpinTab

Attributes

Properties

browsers
Type: nodelist of browser elements
Holds a list of the browser elements inside the tabbrowser.
canGoBack
Type: boolean
This read-only property is true if there is a page to go back to in the session history and the Back button should be enabled.
canGoForward
Type: boolean
This read-only property is true if there is a page to go forward to in the session history and the Forward button should be enabled.
contentDocument
Type: document
This read-only property contains the document object in the element.
contentTitle
Type: string
This read-only property contains the title of the document object in the browser.
contentViewerEdit
Type: nsIContentViewerEdit
This read-only property contains the nsIContentViewerEdit which handles clipboard operations on the document.
contentViewerFile
Type: nsIContentViewerFile
Reference to the nsIContentViewerFile interface for the document.
contentWindow
Type: TODO
Use the contentWindow.wrappedJSObject to obtain a DOM(html) window object
currentURI
Type: nsIURI
This read-only property contains the currently loaded URL. To change the URL, use the loadURI method.
docShell
Type: nsIDocShell
This read-only property contains the nsIDocShell object for the document.
documentCharsetInfo Obsolete since Gecko 12.0
Type: nsIDocumentCharsetInfo
This read-only property contains the nsIDocumentCharsetInfo object for the document which is used to handle which character set should be used to display the document. The properties of the nsIDocumentCharsetInfo object were merged into the docshell in Gecko 12.0 (Firefox 12.0 / Thunderbird 12.0 / SeaMonkey 2.9).
homePage
Type: string home page URL
This property holds the value of the user's home page setting.
markupDocumentViewer
Type: nsIMarkupDocumentViewer
This read-only property contains the nsIMarkupDocumentViewer which is responsible for drawing the document.
securityUI
Type: nsISecureBrowserUI
The read-only property holds an object which may be used to determine the security level of the loaded document.
selectedBrowser
Type: browser element
This read-only property returns the currently displayed browser element.
selectedTab
Type: tab element
A reference to the currently selected tab, which will always be one of the tab elements in the tabs element. Assign a value to this property to modify the currently selected tab.
sessionHistory
Type: nsISHistory
This read-only property contains the nsISHistory object which holds the session history.
tabContainer
Type: tabs element
Returns the tabs element that contains the tabs. This is useful for add-ons that need to use events related to tabs in the browser window.
tabs
Type: array
A NodeList containing the tab objects for each tab in the tabbrowser. This is a shortcut for looking at the tabs in the tabContainer.
visibleTabs
Type: array
An array containing tab objects for each visible tab in the tabbrowser. This lets you determine which tabs are visible in the current tab set.
webBrowserFind
Type: nsIWebBrowserFind
This read-only property contains an nsIWebBrowserFind object which can be used to search for text in the document.
webNavigation
Type: nsIWebNavigation
This read-only property contains the nsIWebNavigation object for the document. Most of its methods are callable directly on the element itself, such as goBack and goForward. It also contains the load constants used by reloadWithFlags and loadURIWithFlags.
webProgress
Type: nsIWebProgress
This read-only property contains an nsIWebProgress object which is used to monitor the progress of a document loading.

Methods

Наследуемые методы
addEvrutListruer(), apprudChild(), blur, click, clonruode(), compareDocumrutPosition, dispatchEvrut(), doCommand, focus, getAttribute(), getAttributruode(), getAttributruodruS(), getAttributruS(), getBoundingClirutRect(), getClirutRects(), getElemrutsByAttribute, getElemrutsByAttributruS, getElemrutsByClassName(), getElemrutsByTagName(), getElemrutsByTagNamruS(), getFeature(), getUserData, hasAttribute(), hasAttributruS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSamruode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributruode(), removeAttributruS(), removeChild(), removeEvrutListruer(), replaceChild(), setAttribute(), setAttributruode(), setAttributruodruS(), setAttributruS(), setUserData

Метки документа и участники

 Внесли вклад в эту страницу: chrisdavidmills, serg_85
 Обновлялась последний раз: chrisdavidmills,