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()

Properties

The underlying JS DOM object.

read / write, inherited
closed bool

Indicates whether this window has been closed.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
history HistoryBase

The current session history for this window.

read-only
location LocationBase

The current location of this window.

read-only
on Events

This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

read-only, inherited
opener WindowBase

A reference to the window that opened this one.

read-only
parent WindowBase

A reference to the parent of this window.

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited
top WindowBase

A reference to the topmost window in the window hierarchy.

read-only

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

addEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void

inherited
close() → void

Closes the window.

dispatchEvent(Event event) bool

inherited
noSuchMethod(Invocation invocation) → dynamic

noSuchMethod is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.

inherited
postMessage(message, String targetOrigin, [List messagePorts]) → void

Sends a cross-origin message.

removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void

inherited
toString() String

Returns a string representation of this object.

inherited