W3cubDocs

/Dart 2

WindowBase class

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

Implemented types
Implementers

Constructors

WindowBase()

Properties

closedbool
read-only
Indicates whether this window has been closed. [...]
historyHistoryBase
read-only
The current session history for this window. [...]
locationLocationBase
read-only
The current location of this window. [...]
openerWindowBase
read-only
A reference to the window that opened this one. [...]
parentWindowBase
read-only
A reference to the parent of this window. [...]
topWindowBase
read-only
A reference to the topmost window in the window hierarchy. [...]
hashCodeint
read-only, inherited
The hash code for this object. [...]
onEvents
read-only, inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

close() → void
Closes the window. [...]
postMessage(dynamic message, String targetOrigin, [ List<MessagePort> messagePorts ]) → void
Sends a cross-origin message. [...]
addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
dispatchEvent(Event event) → bool
inherited
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/WindowBase-class.html