Window class

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.

See also

Other resources

Inheritance
Implements
Annotations
  • @DocsEditable()
  • @DomName('Window')

Constants

animationEndEventEventStreamProvider<AnimationEvent>
@DocsEditable(), @DomName('Window.webkitAnimationEndEvent'), @Experimental(), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.SAFARI)

Static factory designed to expose animationend events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<AnimationEvent>('webkitAnimationEnd')
animationIterationEventEventStreamProvider<AnimationEvent>
@DocsEditable(), @DomName('Window.webkitAnimationIterationEvent'), @Experimental(), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.SAFARI)

Static factory designed to expose animationiteration events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<AnimationEvent>('webkitAnimationIteration')
animationStartEventEventStreamProvider<AnimationEvent>
@DocsEditable(), @DomName('Window.webkitAnimationStartEvent'), @Experimental(), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.SAFARI)

Static factory designed to expose animationstart events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<AnimationEvent>('webkitAnimationStart')
beforeUnloadEventEventStreamProvider<BeforeUnloadEvent>
@DomName('Window.beforeunloadEvent')

Static factory designed to expose beforeunload events to event handlers that are not necessarily instances of Window.

const _BeforeUnloadEventStreamProvider<BeforeUnloadEvent>('beforeunload')
contentLoadedEventEventStreamProvider<Event>
@DocsEditable(), @DomName('Window.DOMContentLoadedEvent')

Static factory designed to expose contentloaded events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<Event>('DOMContentLoaded')
deviceMotionEventEventStreamProvider<DeviceMotionEvent>
@DocsEditable(), @DomName('Window.devicemotionEvent'), @Experimental()

Static factory designed to expose devicemotion events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<DeviceMotionEvent>('devicemotion')
deviceOrientationEventEventStreamProvider<DeviceOrientationEvent>
@DocsEditable(), @DomName('Window.deviceorientationEvent'), @Experimental()

Static factory designed to expose deviceorientation events to event handlers that are not necessarily instances of Window.

hashChangeEventEventStreamProvider<Event>
@DocsEditable(), @DomName('Window.hashchangeEvent')

Static factory designed to expose hashchange events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<Event>('hashchange')
loadStartEventEventStreamProvider<Event>
@DocsEditable(), @DomName('Window.loadstartEvent')
const EventStreamProvider<Event>('loadstart')
messageEventEventStreamProvider<MessageEvent>
@DocsEditable(), @DomName('Window.messageEvent')

Static factory designed to expose message events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<MessageEvent>('message')
offlineEventEventStreamProvider<Event>
@DocsEditable(), @DomName('Window.offlineEvent')

Static factory designed to expose offline events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<Event>('offline')
onlineEventEventStreamProvider<Event>
@DocsEditable(), @DomName('Window.onlineEvent')

Static factory designed to expose online events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<Event>('online')
pageHideEventEventStreamProvider<Event>
@DocsEditable(), @DomName('Window.pagehideEvent')

Static factory designed to expose pagehide events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<Event>('pagehide')
pageShowEventEventStreamProvider<Event>
@DocsEditable(), @DomName('Window.pageshowEvent')

Static factory designed to expose pageshow events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<Event>('pageshow')
PERSISTENTint
@DocsEditable(), @DomName('Window.PERSISTENT'), @Experimental()

Indicates that file system data cannot be cleared unless given user permission.

1
popStateEventEventStreamProvider<PopStateEvent>
@DocsEditable(), @DomName('Window.popstateEvent')

Static factory designed to expose popstate events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<PopStateEvent>('popstate')
progressEventEventStreamProvider<Event>
@DocsEditable(), @DomName('Window.progressEvent')
const EventStreamProvider<Event>('progress')
storageEventEventStreamProvider<StorageEvent>
@DocsEditable(), @DomName('Window.storageEvent')

Static factory designed to expose storage events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<StorageEvent>('storage')
TEMPORARYint
@DocsEditable(), @DomName('Window.TEMPORARY'), @Experimental()

Indicates that file system data can be cleared at any time.

0
unloadEventEventStreamProvider<Event>
@DocsEditable(), @DomName('Window.unloadEvent')

Static factory designed to expose unload events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<Event>('unload')

Static Properties

instanceRuntimeTypeType
@Deprecated("Internal Use Only"), read-only
supportsPointConversionsbool
read-only

convertPointFromNodeToPage and convertPointFromPageToNode are removed. see http://dev.w3.org/csswg/cssom-view/#geometry

Constructors

Window.internal_()

Properties

animationFrameFuture<num>
read-only

Returns a Future that completes just before the window is about to repaint so the user can draw an animation frame.

applicationCacheApplicationCache
@DocsEditable(), @DomName('Window.applicationCache'), read-only

The application cache for this window.

cachesCacheStorage
@DocsEditable(), @DomName('Window.caches'), @Experimental(), read-only
closedbool
@DocsEditable(), @DomName('Window.closed'), read-only
consoleConsole
@DocsEditable(), @DomName('Window.console'), read-only
cryptoCrypto
@DocsEditable(), @DomName('Window.crypto'), @Experimental(), read-only

Entrypoint for the browser's cryptographic functions.

defaultStatusString
@DocsEditable(), @DomName('Window.defaultStatus'), @Experimental(), read / write

Deprecated*.

defaultstatusString
@DocsEditable(), @DomName('Window.defaultstatus'), @Experimental(), read / write

Deprecated*.

devicePixelRationum
@DocsEditable(), @DomName('Window.devicePixelRatio'), @Experimental(), read-only

The ratio between physical pixels and logical CSS pixels.

documentDocument
@DocsEditable(), @DomName('Window.document'), read-only
historyHistory
@DocsEditable(), @DomName('Window.history'), read-only

The current session history for this window's newest document.

indexedDBIdbFactory
@DocsEditable(), @DomName('Window.indexedDB'), @Experimental(), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX, '15'), @SupportedBrowser(SupportedBrowser.IE, '10'), read-only
innerHeightint
@DocsEditable(), @DomName('Window.innerHeight'), read-only

The height of the viewport including scrollbars.

innerWidthint
@DocsEditable(), @DomName('Window.innerWidth'), read-only

The width of the viewport including scrollbars.

isSecureContextbool
@DocsEditable(), @DomName('Window.isSecureContext'), @Experimental(), read-only
localStorageStorage
@DocsEditable(), @DomName('Window.localStorage'), read-only

Storage for this window that persists across sessions.

locationLocation
@DocsEditable(), @DomName('Window.location'), read-only
locationbarBarProp
@DocsEditable(), @DomName('Window.locationbar'), read-only

This window's location bar, which displays the URL.

This window's menu bar, which displays menu commands.

nameString
@DocsEditable(), @DomName('Window.name'), read / write

The name of this window.

The user agent accessing this window.

offscreenBufferingbool
@DocsEditable(), @DomName('Window.offscreenBuffering'), @Experimental(), read-only

Whether objects are drawn offscreen before being displayed.

onAbortStream<Event>
@DocsEditable(), @DomName('Window.onabort'), read-only

Stream of abort events handled by this Window.

onAnimationEndStream<AnimationEvent>
@DocsEditable(), @DomName('Window.onwebkitAnimationEnd'), @Experimental(), read-only

Stream of animationend events handled by this Window.

onAnimationIterationStream<AnimationEvent>
@DocsEditable(), @DomName('Window.onwebkitAnimationIteration'), @Experimental(), read-only

Stream of animationiteration events handled by this Window.

onAnimationStartStream<AnimationEvent>
@DocsEditable(), @DomName('Window.onwebkitAnimationStart'), @Experimental(), read-only

Stream of animationstart events handled by this Window.

onBeforeUnloadStream<Event>
@DomName('Window.onbeforeunload'), read-only

Stream of beforeunload events handled by this Window.

onBlurStream<Event>
@DocsEditable(), @DomName('Window.onblur'), read-only

Stream of blur events handled by this Window.

onCanPlayStream<Event>
@DocsEditable(), @DomName('Window.oncanplay'), read-only
onCanPlayThroughStream<Event>
@DocsEditable(), @DomName('Window.oncanplaythrough'), read-only
onChangeStream<Event>
@DocsEditable(), @DomName('Window.onchange'), read-only

Stream of change events handled by this Window.

onClickStream<MouseEvent>
@DocsEditable(), @DomName('Window.onclick'), read-only

Stream of click events handled by this Window.

onContentLoadedStream<Event>
@DocsEditable(), @DomName('Window.onDOMContentLoaded'), read-only

Stream of contentloaded events handled by this Window.

onContextMenuStream<MouseEvent>
@DocsEditable(), @DomName('Window.oncontextmenu'), read-only

Stream of contextmenu events handled by this Window.

onDeviceMotionStream<DeviceMotionEvent>
@DocsEditable(), @DomName('Window.ondevicemotion'), @Experimental(), read-only

Stream of devicemotion events handled by this Window.

onDeviceOrientationStream<DeviceOrientationEvent>
@DocsEditable(), @DomName('Window.ondeviceorientation'), @Experimental(), read-only

Stream of deviceorientation events handled by this Window.

onDoubleClickStream<Event>
@DocsEditable(), @DomName('Window.ondblclick'), read-only

Stream of doubleclick events handled by this Window.

onDragStream<MouseEvent>
@DocsEditable(), @DomName('Window.ondrag'), read-only

Stream of drag events handled by this Window.

onDragEndStream<MouseEvent>
@DocsEditable(), @DomName('Window.ondragend'), read-only

Stream of dragend events handled by this Window.

onDragEnterStream<MouseEvent>
@DocsEditable(), @DomName('Window.ondragenter'), read-only

Stream of dragenter events handled by this Window.

onDragLeaveStream<MouseEvent>
@DocsEditable(), @DomName('Window.ondragleave'), read-only

Stream of dragleave events handled by this Window.

onDragOverStream<MouseEvent>
@DocsEditable(), @DomName('Window.ondragover'), read-only

Stream of dragover events handled by this Window.

onDragStartStream<MouseEvent>
@DocsEditable(), @DomName('Window.ondragstart'), read-only

Stream of dragstart events handled by this Window.

onDropStream<MouseEvent>
@DocsEditable(), @DomName('Window.ondrop'), read-only

Stream of drop events handled by this Window.

onDurationChangeStream<Event>
@DocsEditable(), @DomName('Window.ondurationchange'), read-only
onEmptiedStream<Event>
@DocsEditable(), @DomName('Window.onemptied'), read-only
onEndedStream<Event>
@DocsEditable(), @DomName('Window.onended'), read-only
onErrorStream<Event>
@DocsEditable(), @DomName('Window.onerror'), read-only

Stream of error events handled by this Window.

onFocusStream<Event>
@DocsEditable(), @DomName('Window.onfocus'), read-only

Stream of focus events handled by this Window.

onHashChangeStream<Event>
@DocsEditable(), @DomName('Window.onhashchange'), read-only

Stream of hashchange events handled by this Window.

onInputStream<Event>
@DocsEditable(), @DomName('Window.oninput'), read-only

Stream of input events handled by this Window.

onInvalidStream<Event>
@DocsEditable(), @DomName('Window.oninvalid'), read-only

Stream of invalid events handled by this Window.

onKeyDownStream<KeyboardEvent>
@DocsEditable(), @DomName('Window.onkeydown'), read-only

Stream of keydown events handled by this Window.

onKeyPressStream<KeyboardEvent>
@DocsEditable(), @DomName('Window.onkeypress'), read-only

Stream of keypress events handled by this Window.

onKeyUpStream<KeyboardEvent>
@DocsEditable(), @DomName('Window.onkeyup'), read-only

Stream of keyup events handled by this Window.

onLoadStream<Event>
@DocsEditable(), @DomName('Window.onload'), read-only

Stream of load events handled by this Window.

onLoadedDataStream<Event>
@DocsEditable(), @DomName('Window.onloadeddata'), read-only
onLoadedMetadataStream<Event>
@DocsEditable(), @DomName('Window.onloadedmetadata'), read-only
onLoadStartStream<Event>
@DocsEditable(), @DomName('Window.onloadstart'), read-only
onMessageStream<MessageEvent>
@DocsEditable(), @DomName('Window.onmessage'), read-only

Stream of message events handled by this Window.

onMouseDownStream<MouseEvent>
@DocsEditable(), @DomName('Window.onmousedown'), read-only

Stream of mousedown events handled by this Window.

onMouseEnterStream<MouseEvent>
@DocsEditable(), @DomName('Window.onmouseenter'), @Experimental(), read-only

Stream of mouseenter events handled by this Window.

onMouseLeaveStream<MouseEvent>
@DocsEditable(), @DomName('Window.onmouseleave'), @Experimental(), read-only

Stream of mouseleave events handled by this Window.

onMouseMoveStream<MouseEvent>
@DocsEditable(), @DomName('Window.onmousemove'), read-only

Stream of mousemove events handled by this Window.

onMouseOutStream<MouseEvent>
@DocsEditable(), @DomName('Window.onmouseout'), read-only

Stream of mouseout events handled by this Window.

onMouseOverStream<MouseEvent>
@DocsEditable(), @DomName('Window.onmouseover'), read-only

Stream of mouseover events handled by this Window.

onMouseUpStream<MouseEvent>
@DocsEditable(), @DomName('Window.onmouseup'), read-only

Stream of mouseup events handled by this Window.

onMouseWheelStream<WheelEvent>
@DocsEditable(), @DomName('Window.onmousewheel'), read-only

Stream of mousewheel events handled by this Window.

onOfflineStream<Event>
@DocsEditable(), @DomName('Window.onoffline'), read-only

Stream of offline events handled by this Window.

onOnlineStream<Event>
@DocsEditable(), @DomName('Window.ononline'), read-only

Stream of online events handled by this Window.

onPageHideStream<Event>
@DocsEditable(), @DomName('Window.onpagehide'), read-only

Stream of pagehide events handled by this Window.

onPageShowStream<Event>
@DocsEditable(), @DomName('Window.onpageshow'), read-only

Stream of pageshow events handled by this Window.

onPauseStream<Event>
@DocsEditable(), @DomName('Window.onpause'), read-only
onPlayStream<Event>
@DocsEditable(), @DomName('Window.onplay'), read-only
onPlayingStream<Event>
@DocsEditable(), @DomName('Window.onplaying'), read-only
onPopStateStream<PopStateEvent>
@DocsEditable(), @DomName('Window.onpopstate'), read-only

Stream of popstate events handled by this Window.

onProgressStream<Event>
@DocsEditable(), @DomName('Window.onprogress'), read-only
onRateChangeStream<Event>
@DocsEditable(), @DomName('Window.onratechange'), read-only
onResetStream<Event>
@DocsEditable(), @DomName('Window.onreset'), read-only

Stream of reset events handled by this Window.

onResizeStream<Event>
@DocsEditable(), @DomName('Window.onresize'), read-only

Stream of resize events handled by this Window.

onScrollStream<Event>
@DocsEditable(), @DomName('Window.onscroll'), read-only

Stream of scroll events handled by this Window.

onSearchStream<Event>
@DocsEditable(), @DomName('Window.onsearch'), @Experimental(), read-only

Stream of search events handled by this Window.

onSeekedStream<Event>
@DocsEditable(), @DomName('Window.onseeked'), read-only
onSeekingStream<Event>
@DocsEditable(), @DomName('Window.onseeking'), read-only
onSelectStream<Event>
@DocsEditable(), @DomName('Window.onselect'), read-only

Stream of select events handled by this Window.

onStalledStream<Event>
@DocsEditable(), @DomName('Window.onstalled'), read-only
onStorageStream<StorageEvent>
@DocsEditable(), @DomName('Window.onstorage'), read-only

Stream of storage events handled by this Window.

onSubmitStream<Event>
@DocsEditable(), @DomName('Window.onsubmit'), read-only

Stream of submit events handled by this Window.

onSuspendStream<Event>
@DocsEditable(), @DomName('Window.onsuspend'), read-only
onTimeUpdateStream<Event>
@DocsEditable(), @DomName('Window.ontimeupdate'), read-only
onTouchCancelStream<TouchEvent>
@DocsEditable(), @DomName('Window.ontouchcancel'), @Experimental(), read-only

Stream of touchcancel events handled by this Window.

onTouchEndStream<TouchEvent>
@DocsEditable(), @DomName('Window.ontouchend'), @Experimental(), read-only

Stream of touchend events handled by this Window.

onTouchMoveStream<TouchEvent>
@DocsEditable(), @DomName('Window.ontouchmove'), @Experimental(), read-only

Stream of touchmove events handled by this Window.

onTouchStartStream<TouchEvent>
@DocsEditable(), @DomName('Window.ontouchstart'), @Experimental(), read-only

Stream of touchstart events handled by this Window.

onTransitionEndStream<TransitionEvent>
@DocsEditable(), @DomName('Window.ontransitionend'), read-only

Stream of transitionend events handled by this Window.

onUnloadStream<Event>
@DocsEditable(), @DomName('Window.onunload'), read-only

Stream of unload events handled by this Window.

onVolumeChangeStream<Event>
@DocsEditable(), @DomName('Window.onvolumechange'), read-only
onWaitingStream<Event>
@DocsEditable(), @DomName('Window.onwaiting'), read-only
openerWindowBase
@DocsEditable(), @DomName('Window.opener'), read / write
orientationint
@DocsEditable(), @DomName('Window.orientation'), @Experimental(), read-only
outerHeightint
@DocsEditable(), @DomName('Window.outerHeight'), read-only

The height of this window including all user interface elements.

outerWidthint
@DocsEditable(), @DomName('Window.outerWidth'), read-only

The width of the window including all user interface elements.

pageXOffsetint
@DocsEditable(), @DomName('Window.pageXOffset'), read-only
pageYOffsetint
@DocsEditable(), @DomName('Window.pageYOffset'), read-only
parentWindowBase
@DocsEditable(), @DomName('Window.parent'), read-only
performancePerformance
@DocsEditable(), @DomName('Window.performance'), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE), read-only

Timing and navigation data for this window.

renderWorklet → _Worklet
@DocsEditable(), @DomName('Window.renderWorklet'), @Experimental(), read-only
screenScreen
@DocsEditable(), @DomName('Window.screen'), read-only

Information about the screen displaying this window.

screenLeftint
@DocsEditable(), @DomName('Window.screenLeft'), read-only

The distance from the left side of the screen to the left side of this window.

screenTopint
@DocsEditable(), @DomName('Window.screenTop'), read-only

The distance from the top of the screen to the top of this window.

screenXint
@DocsEditable(), @DomName('Window.screenX'), read-only

The distance from the left side of the screen to the mouse pointer.

screenYint
@DocsEditable(), @DomName('Window.screenY'), read-only

The distance from the top of the screen to the mouse pointer.

scrollbarsBarProp
@DocsEditable(), @DomName('Window.scrollbars'), read-only

This window's scroll bars.

scrollXint
@DocsEditable(), @DomName('Window.scrollX'), read-only
scrollYint
@DocsEditable(), @DomName('Window.scrollY'), read-only
selfWindowBase
@DocsEditable(), @DomName('Window.self'), read-only

The current window.

sessionStorageStorage
@DocsEditable(), @DomName('Window.sessionStorage'), read-only

Storage for this window that is cleared when this session ends.

speechSynthesisSpeechSynthesis
@DocsEditable(), @DomName('Window.speechSynthesis'), @Experimental(), read-only

Access to speech synthesis in the browser.

statusString
@DocsEditable(), @DomName('Window.status'), read / write

Deprecated*.

statusbarBarProp
@DocsEditable(), @DomName('Window.statusbar'), read-only

This window's status bar.

styleMediaStyleMedia
@DocsEditable(), @DomName('Window.styleMedia'), @Experimental(), read-only

Access to CSS media queries.

toolbarBarProp
@DocsEditable(), @DomName('Window.toolbar'), read-only

This window's tool bar.

topWindowBase
@DocsEditable(), @DomName('Window.top'), read-only
windowWindowBase
@DocsEditable(), @DomName('Window.window'), read-only

The current window.

hashCodeint
read-only, inherited
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.

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

alert([String message ]) → void
atob(String atob) → String
@DocsEditable(), @DomName('Window.atob')
btoa(String btoa) → String
@DocsEditable(), @DomName('Window.btoa')
cancelAnimationFrame(int handle) → void
@DocsEditable(), @DomName('Window.cancelAnimationFrame')
cancelIdleCallback(int handle) → void
@DocsEditable(), @DomName('Window.cancelIdleCallback'), @Experimental()
close() → void
@DocsEditable(), @DomName('Window.close')

Closes the window.

confirm([String message ]) → bool
fetch(input, [ Map init ]) → Future
find(String string, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) → bool
@DocsEditable(), @DomName('Window.find'), @Experimental()

Finds text in this window.

getMatchedCssRules(Element element, String pseudoElement) → List<CssRule>
@DocsEditable(), @DomName('Window.getMatchedCSSRules'), @Experimental()

Returns all CSS rules that apply to the element's pseudo-element.

getSelection() → Selection
@DocsEditable(), @DomName('Window.getSelection')

Returns the currently selected text.

matchMedia(String query) → MediaQueryList
@DocsEditable(), @DomName('Window.matchMedia')

Returns a list of media queries for the given query string.

moveBy(int x, int y) → void
@DocsEditable(), @DomName('Window.moveBy')

Moves this window.

moveTo(Point p) → void

Moves this window to a specific position.

open(String url, String target, [ String features ]) → WindowBase
@DocsEditable(), @DomName('Window.open')
openDatabase(String name, String version, String displayName, int estimatedSize, [ DatabaseCallback creationCallback ]) → SqlDatabase
postMessage(Object message, String targetOrigin, [ List<MessagePort> transfer ]) → void
@DocsEditable(), @DomName('Window.postMessage')

Sends a cross-origin message.

print() → void
@DocsEditable(), @DomName('Window.print')

Opens the print dialog for this window.

requestAnimationFrame(FrameRequestCallback callback) → int
@DomName('Window.requestAnimationFrame')

Called to draw an animation frame and then request the window to repaint after callback has finished (creating the animation).

requestFileSystem(int size, { bool persistent: false }) → Future<FileSystem>

Access a sandboxed file system of the specified size. If persistent is true, the application will request permission from the user to create lasting storage. This storage cannot be freed without the user's permission. Returns a Future whose value stores a reference to the sandboxed file system for use. Because the file system is sandboxed, applications cannot access file systems created in other web pages.

requestIdleCallback(IdleRequestCallback callback, [ Map options ]) → int
resizeBy(int x, int y) → void
@DocsEditable(), @DomName('Window.resizeBy')

Resizes this window by an offset.

resizeTo(int x, int y) → void
@DocsEditable(), @DomName('Window.resizeTo')

Resizes this window to a specific width and height.

resolveLocalFileSystemUrl(String url) → Future<Entry>
scroll([options_OR_x, y, Map scrollOptions ]) → void
scrollBy([options_OR_x, y, Map scrollOptions ]) → void
scrollTo([options_OR_x, y, Map scrollOptions ]) → void
stop() → void
@DocsEditable(), @DomName('Window.stop')

Stops the window from loading.

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 the result of the JavaScript objects toString method.

© 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/Window-class.html