windows.Window
Information about a browser window.
In this article
Type
Values of this type areobjects. They contain the following properties:
alwaysOnTopboolean. Whether the window is set to be always on top.focusedboolean. Whether the window is currently the focused window.heightOptionalinteger. The height of the window, including the frame, in pixels.idOptionalinteger. The ID of the window. Window IDs are unique within a browser session.incognitoboolean. Whether the window is incognito (private).leftOptionalinteger. The offset of the window from the left edge of the screen in pixels.sessionIdOptionalstring. The session ID used to uniquely identify a Window obtained from thesessionsAPI.stateOptionalA
windows.WindowStatevalue representing the state of this browser window — maximized, minimized, etc.tabsOptionalArray of
tabs.Tabobjects representing the current tabs in the window.titleOptionalThe title of the browser window. Requires "tabs" permission orhost permissions for the active tab's URL. Read only.
topOptionalinteger. The offset of the window from the top edge of the screen in pixels.typeOptionalA
windows.WindowTypevalue representing the type of browser window this is — normal browser window, popup, etc.widthOptionalinteger. The width of the window, including the frame, in pixels.
Example extensions
Browser compatibility
Note:This API is based on Chromium'schrome.windows API. This documentation is derived fromwindows.json in the Chromium code.