Top-level container for the current browser tab or window.
In a web browser, each window has a Window object, but within the context of a script, this object represents only the current window. Each other window, tab, and iframe has its own Window object.
Each window contains a Document object, which contains all of the window's content.
Use the top-level window object to access the current window.
For example:
// Draw a scene when the window repaints.
drawScene(num delta) {...}
window.animationFrame.then(drawScene);.
// Write to the console.
window.console.log('Jinkies!');
window.console.error('Jeepers!');
Note: This class represents only the current window, while WindowBase is a representation of any window, including other tabs, windows, and frames.
abort events handled by this Window.
animationend events handled by this Window.
animationiteration events handled by this Window.
animationstart events handled by this Window.
beforeunload events handled by this Window.
blur events handled by this Window.
change events handled by this Window.
click events handled by this Window.
contentloaded events handled by this Window.
contextmenu events handled by this Window.
devicemotion events handled by this Window.
deviceorientation events handled by this Window.
doubleclick events handled by this Window.
drag events handled by this Window.
dragend events handled by this Window.
dragenter events handled by this Window.
dragleave events handled by this Window.
dragover events handled by this Window.
dragstart events handled by this Window.
drop events handled by this Window.
error events handled by this Window.
focus events handled by this Window.
hashchange events handled by this Window.
input events handled by this Window.
invalid events handled by this Window.
keydown events handled by this Window.
keypress events handled by this Window.
keyup events handled by this Window.
load events handled by this Window.
message events handled by this Window.
mousedown events handled by this Window.
mouseenter events handled by this Window.
mouseleave events handled by this Window.
mousemove events handled by this Window.
mouseout events handled by this Window.
mouseover events handled by this Window.
mouseup events handled by this Window.
mousewheel events handled by this Window.
offline events handled by this Window.
online events handled by this Window.
pagehide events handled by this Window.
pageshow events handled by this Window.
popstate events handled by this Window.
reset events handled by this Window.
resize events handled by this Window.
scroll events handled by this Window.
search events handled by this Window.
select events handled by this Window.
storage events handled by this Window.
submit events handled by this Window.
touchcancel events handled by this Window.
touchend events handled by this Window.
touchmove events handled by this Window.
touchstart events handled by this Window.
transitionend events handled by this Window.
unload events handled by this Window.
wheel events handled by this Window.
callback has finished (creating the animation). [...]
size bytes. [...]
animationend events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<AnimationEvent>('webkitAnimationEnd')
animationiteration events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<AnimationEvent>('webkitAnimationIteration')
animationstart events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<AnimationEvent>('webkitAnimationStart')
beforeunload events to event
handlers that are not necessarily instances of Window. [...]
const _BeforeUnloadEventStreamProvider('beforeunload')
contentloaded events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<Event>('DOMContentLoaded')
devicemotion events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<DeviceMotionEvent>('devicemotion')
deviceorientation events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<DeviceOrientationEvent>('deviceorientation')
hashchange events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<Event>('hashchange')
const EventStreamProvider<Event>('loadstart')
message events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<MessageEvent>('message')
offline events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<Event>('offline')
online events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<Event>('online')
pagehide events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<Event>('pagehide')
pageshow events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<Event>('pageshow')
1
popstate events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<PopStateEvent>('popstate')
const EventStreamProvider<Event>('progress')
storage events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<StorageEvent>('storage')
0
unload events to event
handlers that are not necessarily instances of Window. [...]
const EventStreamProvider<Event>('unload')