WindowBase class

Top-level container for a browser tab or window.

Top-level container for a browser tab or window.

In a web browser, a WindowBase object represents any browser window. This object contains the window's state and its relation to other windows, such as which window opened this window.

Note: This class represents any window, while Window is used to access the properties and content of the current window or tab.

See also

Other resources

Implements
Implemented by

Constructors

WindowBase()

Instance Properties

location LocationBase
read-only
history HistoryBase
read-only
closed bool
read-only
opener WindowBase
read-only
parent WindowBase
read-only
top WindowBase
read-only
on Events Inherited
read-only

Instance Methods

close() → void
Closes the window.
postMessage(message, String targetOrigin, [List messagePorts]) → void
Sends a cross-origin message.
dispatchEvent(Event event) → bool Inherited
removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void Inherited
addEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void Inherited