WindowBase abstract 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
- DOM Window from MDN.
- Window from the W3C.
- Implements
- Implemented by
Constructors
Properties
- closed → bool read-only
-
Indicates whether this window has been closed.
- history → HistoryBase read-only
-
The current session history for this window.
- location → LocationBase read-only
-
The current location of this window.
- opener → WindowBase read-only
-
A reference to the window that opened this one.
- parent → WindowBase read-only
-
A reference to the parent of this window.
- top → WindowBase read-only
-
A reference to the topmost window in the window hierarchy.
- hashCode → int read-only, inherited
-
The hash code for this object.
- on → Events 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.
- runtimeType → Type read-only, inherited
-
A representation of the runtime type of the object.
Operators
- operator ==(
other) → bool inherited -
The equality operator.
Methods
- close(
) → void -
Closes the window.
- postMessage(
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 @DocsEditable(), @DomName('EventTarget.dispatchEvent'), 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.
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/WindowBase-class.html