DOM Reference Manual | All Packages | All Classes | Index | Frames No Frames | ||
WindowProxy | Properties | Methods | ||
Package | dom |
Class | public class WindowProxy |
Inheritance | WindowProxy Window Object |
See also
Property | Defined By | ||
---|---|---|---|
applicationCache : nsIDOMOfflineResourceList [read-only]
Non-Standard | Firefox 3+
Returns a reference to the application cache object for the window. | Window | ||
closed : Boolean [read-only]
DOM Level 0
This property indicates whether the referenced window is closed or not. | Window | ||
Components : nsIXPCComponents [read-only]
Non-Standard | Firefox
The Components object is the object through which XPConnect functionality is reflected into JavaScript. | Window | ||
content : Window [read-only]
Non-Standard | Firefox
Returns a Window object for the primary content window. | Window | ||
crypto : Crypto [read-only]
DOM Level 0
Returns the browser crypto object, which can then be used to manipulate various
browser security features. | Window | ||
defaultStatus : DOMString
DOM Level 0
Gets/sets the status bar text for the given window. | Window | ||
directories : BarProp [read-only]
DOM Level 0
Returns the window directories toolbar object. | Window | ||
document : DocumentView [read-only]
The source DocumentView of which this is an AbstractView. | Window | ||
frameElement : Element [read-only]
DOM Level 0
Returns the element (such as <iframe> or <object>) in which the window is embedded,
or null if the window is top-level. | Window | ||
frames : Array [read-only]
DOM Level 0
Returns an array-like object, listing the direct sub-frames of the current window. | Window | ||
fullScreen : Boolean
DOM Level 0 | Firefox 3+
This property indicates whether the window is displayed in full screen mode or not. | Window | ||
globalStorage : Object [read-only]
Non-Standard | Firefox 2
This is a global object (globalStorage) that maintains multiple private storage areas
that can be used to hold data over a long period of time (e.g. | Window | ||
history : History [read-only]
DOM Level 0
Returns a reference to the History object, which provides an interface for manipulating
the browser session history (pages visited in the tab or frame that the current page is loaded in). | Window | ||
HTML 5 innerHeight : Number [read-only]
Height of the browser window viewport including, if rendered, the horizontal scrollbar. | Window | ||
HTML 5 innerWidth : Number [read-only]
Width of the browser window viewport including, if rendered, the vertical scrollbar. | Window | ||
length : Number [read-only]
DOM Level 0
Returns the number of frames (either frame or iframe elements) in the window. | Window | ||
localStorage : Storage [read-only]
Web Storage
This is a global object that maintains multiple private storage areas
that can be used to hold data over a long period of time (e.g. | Window | ||
location : Location [read-only]
DOM Level 0
Returns a Location object, which contains information about the URL
of the document and provides methods for changing that URL. | Window | ||
locationbar : BarProp [read-only]
DOM Level 0
Returns the locationbar object, whose visibility can be toggled in the window. | Window | ||
HTML 5 media : Media [read-only]
Returns an Media object. | Window | ||
menubar : BarProp [read-only]
DOM Level 0
Returns the menubar object, whose visibility can be toggled in the window. | Window | ||
name : DOMString
DOM Level 0
Gets/sets the name of the window. | Window | ||
navigator : Navigator [read-only]
DOM Level 0
Returns a reference to the navigator object, which can be queried for information
about the application running the script. | Window | ||
onabort : Function
An event handler for abort events sent to the window. | Window | ||
onbeforeunload : Function
An event that fires before the unload event when the page is unloaded. | Window | ||
onblur : Function
DOM Level 0
The onblur property can be used to set the blur handler on the window, which is triggered when the window loses focus. | Window | ||
onchange : Function
An event handler for change events sent to the window. | Window | ||
onclick : Function
Called when the user clicks the mouse button while the cursor is in the window. | Window | ||
onclose : Function
An event handler for close events sent to the window. | Window | ||
oncontextmenu : Function
An event handler property for right-click events on the window. | Window | ||
ondragdrop : Function
An event handler for drag and drop events sent to the window. | Window | ||
onerror : Function
An event handler for error events sent to the window. | Window | ||
onfocus : Function
An event handler for focus events sent to the window. | Window | ||
onkeydown : Function
An event handler for the keydown event on the window. | Window | ||
onkeypress : Function
An event handler for the keypress event on the window. | Window | ||
onkeyup : Function
An event handler for the keyup event on the window. | Window | ||
onload : Function
DOM Level 0
An event handler for the load event of a window. | Window | ||
onmousedown : Function
An event handler for the mousedown event on the window. | Window | ||
onmousemove : Function
An event handler for the mousemove event on the window. | Window | ||
onmouseout : Function
An event handler for the mouseout event on the window. | Window | ||
onmouseover : Function
An event handler for the mouseover event on the window. | Window | ||
onmouseup : Function
An event handler for the mouseup event on the window. | Window | ||
onpaint : Function
DOM Level 0
An event handler for the paint event on the window. | Window | ||
onreset : Function
An event handler for the reset event on the window. | Window | ||
onresize : Function
An event handler for the resize event on the window. | Window | ||
onscroll : Function
Specifies the function to be called when the window is scrolled. | Window | ||
onselect : Function
An event handler for the select event on the window. | Window | ||
onsubmit : Function
An event handler for the submit event on the window. | Window | ||
onunload : Function
DOM Level 0
The unload event is raised when the document is unloaded. | Window | ||
opener : WindowProxy [read-only]
DOM Level 0
Returns a reference to the window that opened this current window. | Window | ||
HTML 5 outerHeight : Number [read-only]
Gets the height of the outside of the browser window. | Window | ||
HTML 5 outerWidth : Number [read-only]
Gets the width of the outside of the browser window. | Window | ||
HTML 5 pageXOffset : Number [read-only]
Returns the number of pixels that the document has already been scrolled horizontally. | Window | ||
HTML 5 pageYOffset : Number [read-only]
Returns the number of CSS pixels the user has scrolled towards the bottom within the viewport. | Window | ||
parent : Window [read-only]
DOM Level 0
Returns a reference to the parent of the current window or subframe. | Window | ||
personalbar : BarProp [read-only]
Returns the personalbar object, whose visibility can be toggled in the window. | Window | ||
pkcs11 : Pkcs11 [read-only]
DOM Level 0
Returns the pkcs11 object , which can be used to install drivers and other software
associated with the pkcs11 protocol. | Window | ||
returnValue : * [read-only]
Non-Standard? | Firefox 3+
The return value to be returned to the function that called window.showModalDialog()
to display the window as a modal dialog. | Window | ||
HTML 5 screen : Screen [read-only]
Returns a reference to the screen object associated with the window. | Window | ||
HTML 5 screenX : Number [read-only]
Returns the horizontal distance of the left border of the user's browser from the left side of the screen. | Window | ||
HTML 5 screenY : Number [read-only]
Returns the vertical distance of the top border of the user's browser from the top edge of the screen. | Window | ||
scrollbars : BarProp [read-only]
DOM Level 0
Returns the scrollbars object, whose visibility can be toggled in the window. | Window | ||
scrollMaxX : Number [read-only]
DOM Level 0
Returns the maximum number of pixels that the document can be scrolled horizontally. | Window | ||
scrollMaxY : Number [read-only]
DOM Level 0
Returns the maximum number of pixels that the document can be scrolled vertically. | Window | ||
scrollX : Number [read-only]
DOM Level 0
Returns the number of pixels that the document has already been scrolled horizontally. | Window | ||
scrollY : Number [read-only]
DOM Level 0
Returns the number of pixels that the document has already been scrolled vertically. | Window | ||
self : WindowProxy [read-only]
Returns a self-reference. | Window | ||
sessionStorage : Storage [read-only]
HTML5 | Firefox 3+
This is a global object (sessionStorage) that maintains a storage area that's available
for the duration of the page session. | Window | ||
sidebar : Sidebar [read-only]
Non-Standard | Firefox
Returns a reference to the window object of the sidebar. | Window | ||
status : DOMString
DOM Level 0
Sets the text in the status bar at the bottom of the browser or returns the previously set text. | Window | ||
statusbar : BarProp [read-only]
DOM Level 0
Returns the statusbar object, whose visibility can be toggled in the window. | Window | ||
toolbar : BarProp [read-only]
DOM Level 0
Returns the toolbar object, whose visibility can be toggled in the window. | Window | ||
top : WindowProxy [read-only]
DOM Level 0
Returns a reference to the topmost window in the window hierarchy. | Window | ||
window : WindowProxy [read-only]
Returns a self-reference. | Window |
Method | Defined By | ||
---|---|---|---|
Associates a function with a particular event and binds the event to the current node. | Window | ||
addEventListenerNS(namespaceURI:DOMString, type:DOMString, listener:EventListener, useCapture:Boolean):void
Registers an event listener, depending on the useCapture parameter, on the
capture phase of the DOM event flow or its target and bubbling phases. | Window | ||
DOM Level 0
Display an alert dialog with the specified content and an OK button. | Window | ||
DOM Level 0
Decodes a string of data which has been encoded using base-64 encoding. | Window | ||
back():void
DOM Level 0
Returns the window to the previous item in the history. | Window | ||
blur():void
DOM Level 0
Shifts focus away from the window. | Window | ||
DOM Level 0
Creates a base-64 encoded ASCII string from a string of binary data. | Window | ||
captureEvents(eventType:DOMString):void
DOM Level 0 | OBSOLETE
Registers the window to capture all events of the specified type. | Window | ||
clearInterval(timerID:Number):void
DOM Level 0
Cancels repeated action which was set up using setInterval(). | Window | ||
clearTimeout(timerID:Number):void
DOM Level 0
Clears the delay set by window.setTimeout(). | Window | ||
close():void
DOM Level 0
Closes the current window, or a referenced window. | Window | ||
DOM Level 0
Displays a modal dialog with a message and two buttons, OK and Cancel. | Window | ||
disableExternalCapture():void
Undocumented
| Window | ||
dispatchEvent(event:Event):Boolean
Dispatches an event to fire on a node artificially. | Window | ||
DOM Level 0
Prints messages to the console. | Window | ||
enableExternalCapture():void
Undocumented
| Window | ||
DOM Level 0
Encodes a string, replacing certain characters with a hexadecimal escape sequence. | Window | ||
find(string:DOMString, caseSensitive:Boolean, backwards:Boolean, wrapAround:Boolean, wholeWord:Boolean, searchInFrames:Boolean, showDialog:Boolean):Boolean
DOM Level 0
Finds a string in a window. | Window | ||
focus():void
DOM Level 0
Sets focus on the window. | Window | ||
forward():void
DOM Level 0
Moves the window one document forward in the history. | Window | ||
GeckoActiveXObject():void
Undocumented
| Window | ||
getAttention():void
DOM Level 0
Attempts to get the user's attention. | Window | ||
getAttentionWithCycleCount():void
Undocumented
| Window | ||
This method is used to get the computed style as it is defined in CSS2. | Window | ||
DOM Level 0
Returns a selection object representing the range of text selected by the user. | Window | ||
home():void
DOM Level 0
Returns the window to the home page. | Window | ||
maximize():void
Undocumented
| Window | ||
minimize():void
Undocumented
| Window | ||
moveBy(deltaX:Number, deltaY:Number):void
DOM Level 0
Moves the current window by a specified amount. | Window | ||
moveTo(x:Number, y:Number):void
DOM Level 0
Moves the window to the specified coordinates. | Window | ||
DOM Level 0
Creates a new secondary browser window and loads the referenced resource. | Window | ||
DOM Level 0
window.openDialog is an extension to window.open. | Window | ||
HTML5 | Firefox 3
window.postMessage is a method for safely enabling cross-origin communication. | Window | ||
print():void
DOM Level 0
Opens the Print Dialog to print the current document. | Window | ||
DOM Level 0
Displays a dialog with a message prompting the user to input some text. | Window | ||
QueryInterface():void
Undocumented
| Window | ||
releaseEvents(eventType:DOMString):void
DOM Level 0 | OBSOLETE
Releases the window from trapping events of a specific type. | Window | ||
Removes an event listener. | Window | ||
removeEventListenerNS(namespaceURI:DOMString, type:DOMString, listener:EventListener, useCapture:Boolean):void
Removes an event listener. | Window | ||
resizeBy(xDelta:Number, yDelta:Number):void
DOM Level 0
Resizes the current window by a certain amount. | Window | ||
resizeTo(width:Number, height:Number):void
DOM Level 0
Dynamically resizes window. | Window | ||
restore():void
Undocumented
| Window | ||
routeEvent():void
Undocumented
| Window | ||
scroll(xCoord:Number, yCoord:Number):void
DOM Level 0
Scrolls the window to a particular place in the document. | Window | ||
scrollBy(x:Number, y:Number):void
DOM Level 0
Scrolls the document in the window by the given amount. | Window | ||
scrollByLines(lines:Number):void
DOM Level 0
Scrolls the document by the given number of lines. | Window | ||
scrollByPages(pages:Number):void
DOM Level 0
Scrolls the current document by the specified number of pages. | Window | ||
scrollTo(xCoord:Number, yCoord:Number):void
DOM Level 0
Scrolls to a particular set of coordinates in the document. | Window | ||
DOM Level 0
Changes the cursor for the current window. | Window | ||
setInterval(func:Function, delay:Number):Number
DOM Level 0
Calls a function repeatedly, with a fixed time delay between each call to that function. | Window | ||
setResizable():void
Undocumented
| Window | ||
setTimeout(func:Function, delay:Number):Number
DOM Level 0
Executes a code snippet or a function after specified delay. | Window | ||
Non-Standard | IE4 Firefox3
Creates and displays a modal dialog box containing a specified HTML document. | Window | ||
sizeToContent():void
DOM Level 0
Sizes the window according to its content. | Window | ||
stop():void
DOM Level 0
This method stops window loading. | Window | ||
DOM Level 0
Decodes a value that has been encoded in hexadecimal (e.g., a cookie). | Window | ||
updateCommands(commandName:DOMString):void
DOM Level 0
Updates the state of commands of the current chrome window (UI). | Window | ||
XPCNativeWrapper():void
Undocumented
| Window | ||
XPCSafeJSObjectWrapper():void
Undocumented
| Window |