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:
Implementors

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 Inherited ( Event event ) → bool
removeEventListener Inherited ( String type, dynamic listener(Event event), [bool useCapture] ) → void
addEventListener Inherited ( String type, dynamic listener(Event event), [bool useCapture] ) → void