/* * Copyright (C)2005-2013 Haxe Foundation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ // This file is generated, do not edit! package js.html; /**
This section provides a brief reference for all of the methods, properties, and events available through the DOM window
object. The window
object implements the Window
interface, which in turn inherits from the AbstractView
interface. Some additional global functions, namespaces objects, and constructors, not typically associated with the window, but available on it, are listed in the JavaScript Reference.
The window
object represents the window itself. The document
property of a window
points to the DOM document loaded in that window. A window for a given document can be obtained using the document.defaultView
property.
In a tabbed browser, such as Firefox, each tab contains its own window
object (and if you're writing an extension, the browser window itself is a separate window too - see Working with windows in chrome code for more information). That is, the window
object is not shared between tabs in the same window. Some methods, namely window.resizeTo
and window.resizeBy
apply to the whole window and not to the specific tab the window
object belongs to. Generally, anything that can't reasonably pertain to a tab pertains to the window instead.
nsIDOMOfflineResourceList
object providing access to the offline resources for the window. */
var applicationCache(default,null) : DOMApplicationCache;
var clientInformation(default,null) : Navigator;
/** window.frames
. */
var length(default,null) : Int;
/** Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it. Getter throws DOMException. */
var localStorage(default,null) : Storage;
/** Gets/sets the location, or current URL, of the window object. */
var location : Location;
/** Returns the locationbar object, whose visibility can be toggled in the window. */
var locationbar(default,null) : BarInfo;
/** Returns the menubar object, whose visibility can be toggled in the window. */
var menubar(default,null) : BarInfo;
/** Gets/sets the name of the window. */
var name : String;
/** Returns a reference to the navigator object. */
var navigator(default,null) : Navigator;
var notifications(default,null) : NotificationCenter;
var offscreenBuffering(default,null) : Bool;
/** An event handler property for abort events on the window. */
var onabort : EventListener;
var onanimationend : EventListener;
var onanimationiteration : EventListener;
var onanimationstart : EventListener;
/** An event handler property for before-unload events on the window. */
var onbeforeunload : EventListener;
/** An event handler property for blur events on the window. */
var onblur : EventListener;
var oncanplay : EventListener;
var oncanplaythrough : EventListener;
/** An event handler property for change events on the window. */
var onchange : EventListener;
/** An event handler property for click events on the window. */
var onclick : EventListener;
/** An event handler property for right-click events on the window. */
var oncontextmenu : EventListener;
var ondblclick : EventListener;
var ondevicemotion : EventListener;
var ondeviceorientation : EventListener;
var ondrag : EventListener;
var ondragend : EventListener;
var ondragenter : EventListener;
var ondragleave : EventListener;
var ondragover : EventListener;
var ondragstart : EventListener;
var ondrop : EventListener;
var ondurationchange : EventListener;
var onemptied : EventListener;
var onended : EventListener;
/** An event handler property for errors raised on the window. */
var onerror : EventListener;
/** An event handler property for focus events on the window. */
var onfocus : EventListener;
/** An event handler property for hash change events on the window; called when the part of the URL after the hash mark ("#") changes. */
var onhashchange : EventListener;
var oninput : EventListener;
var oninvalid : EventListener;
/** An event handler property for keydown events on the window. */
var onkeydown : EventListener;
/** An event handler property for keypress events on the window. */
var onkeypress : EventListener;
/** An event handler property for keyup events on the window. */
var onkeyup : EventListener;
/** An event handler property for window loading. */
var onload : EventListener;
var onloadeddata : EventListener;
var onloadedmetadata : EventListener;
var onloadstart : EventListener;
var onmessage : EventListener;
/** An event handler property for mousedown events on the window. */
var onmousedown : EventListener;
/** An event handler property for mousemove events on the window. */
var onmousemove : EventListener;
/** An event handler property for mouseout events on the window. */
var onmouseout : EventListener;
/** An event handler property for mouseover events on the window. */
var onmouseover : EventListener;
/** An event handler property for mouseup events on the window. */
var onmouseup : EventListener;
var onmousewheel : EventListener;
var onoffline : EventListener;
var ononline : EventListener;
/** An event handler property for pagehide events on the window. */
var onpagehide : EventListener;
/** An event handler property for pageshow events on the window. */
var onpageshow : EventListener;
var onpause : EventListener;
var onplay : EventListener;
var onplaying : EventListener;
/** An event handler property for popstate events, which are fired when navigating to a session history entry representing a state object. */
var onpopstate : EventListener;
var onprogress : EventListener;
var onratechange : EventListener;
/** An event handler property for reset events on the window. */
var onreset : EventListener;
/** An event handler property for window resizing. */
var onresize : EventListener;
/** An event handler property for window scrolling. */
var onscroll : EventListener;
var onsearch : EventListener;
var onseeked : EventListener;
var onseeking : EventListener;
/** An event handler property for window selection. */
var onselect : EventListener;
var onstalled : EventListener;
var onstorage : EventListener;
/** An event handler property for submits on window forms. */
var onsubmit : EventListener;
var onsuspend : EventListener;
var ontimeupdate : EventListener;
var ontouchcancel : EventListener;
var ontouchend : EventListener;
var ontouchmove : EventListener;
var ontouchstart : EventListener;
var ontransitionend : EventListener;
/** An event handler property for unload events on the window. */
var onunload : EventListener;
var onvolumechange : EventListener;
var onwaiting : EventListener;
/** Returns a reference to the window that opened this current window. */
var opener(default,null) : DOMWindow;
/** Gets the height of the outside of the browser window. */
var outerHeight(default,null) : Int;
/** Gets the width of the outside of the browser window. */
var outerWidth(default,null) : Int;
var pagePopupController(default,null) : PagePopupController;
/** An alias for window.scrollX
. */
var pageXOffset(default,null) : Int;
/** An alias for window.scrollY
*/
var pageYOffset(default,null) : Int;
/** Returns a reference to the parent of the current window or subframe. */
var parent(default,null) : DOMWindow;
var performance(default,null) : Performance;
/** Returns the personalbar object, whose visibility can be toggled in the window. */
var personalbar(default,null) : BarInfo;
/** Returns a reference to the screen object associated with the window. */
var screen(default,null) : Screen;
var screenLeft(default,null) : Int;
var screenTop(default,null) : Int;
/** Returns the horizontal distance of the left border of the user's browser from the left side of the screen. */
var screenX(default,null) : Int;
/** Returns the vertical distance of the top border of the user's browser from the top side of the screen. */
var screenY(default,null) : Int;
/** Returns the number of pixels that the document has already been scrolled horizontally. */
var scrollX(default,null) : Int;
/** Returns the number of pixels that the document has already been scrolled vertically. */
var scrollY(default,null) : Int;
/** Returns the scrollbars object, whose visibility can be toggled in the window. */
var scrollbars(default,null) : BarInfo;
/** Returns an object reference to the window object itself. */
var self(default,null) : DOMWindow;
/** A storage object for storing data within a single page session. Getter throws DOMException. */
var sessionStorage(default,null) : Storage;
/** Gets/sets the text in the statusbar at the bottom of the browser. */
var status : String;
/** Returns the statusbar object, whose visibility can be toggled in the window. */
var statusbar(default,null) : BarInfo;
var storageInfo(default,null) : StorageInfo;
var styleMedia(default,null) : StyleMedia;
/** Returns the toolbar object, whose visibility can be toggled in the window. */
var toolbar(default,null) : BarInfo;
/** window.URL
Requires Gecko 2.0
window.URL.createObjectURL()
and window.URL.revokeObjectURL()
methods.window
object in the frames. See window.frames
for more details.