mozilla

Revision 269943 of Referência do DOM window

  • Slug da revisão: DOM/Referência_do_DOM_window
  • Título da revisão: Referência do DOM window
  • ID da revisão: 269943
  • Criado:
  • Autor: fryn
  • É revisão atual? Sim
  • Comentário 17 words removed

Conteúdo da revisão

Esta seção tem uma breve referência sobre os métodos, propriedades, e eventos disponíveis através do objeto window. O objeto window implementa a interface Window, que é herdada da interface AbstractView.

O objeto window representa a própria janela. A propriedade document de window aponta para o DOM document carregado nesta janela. Uma janela para um dado documento pode ser obtida usando a propriedade document.defaultView.

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.

Properties
Edit section

window.applicationCache Requires Gecko 1.9
An nsIDOMOfflineResourceList object providing access to the offline resources for the window.
window.closed
This property indicates whether the current window is closed or not.
window.Components
The entry point to many XPCOM features. Some properties, e.g. classes, are only available to sufficiently privileged code.
window.content and window._content
Returns a reference to the content element in the current window. The variant with underscore is deprecated.
window.controllers
Returns the XUL controller objects for the current chrome window.
window.crypto
Returns the browser crypto object.
window.defaultStatus
Gets/sets the status bar text for the given window.
window.dialogArguments New in Firefox 3
Gets the arguments passed to the window (if it's a dialog box) at the time window.showModalDialog() was called. This is an nsIArray.
window.directories Obsolete
Synonym of window.personalbar
window.document
Returns a reference to the document that the window contains.
window.frameElement
Returns the element in which the window is embedded, or null if the window is not embedded.
window.frames
Returns an array of the subframes in the current window.
window.fullScreen Requires Gecko 1.9
This property indicates whether the window is displayed in full screen or not.
window.globalStorage Requires Gecko 1.8.1 Non-standard
Multiple storage objects that are used for storing data across multiple pages.  Note that this is non-standard; it is recommended that you use window.localStorage instead.
window.history
Returns a reference to the history object.
window.innerHeight
Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar.
window.innerWidth
Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar.
window.length
Returns the number of frames in the window.
window.location
Gets/sets the location, or current URL, of the window object.
window.locationbar
Returns the locationbar object, whose visibility can be toggled in the window.
window.localStorage Requires Gecko 1.9.1
Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it.
window.menubar
Returns the menubar object, whose visibility can be toggled in the window.
window.mozAnimationStartTime Requires Gecko 2.0
The time in milliseconds since epoch at which the current animation cycle began.
window.mozInnerScreenX Requires Gecko 1.9.2
Returns the horizontal (X) coordinate of the top-left corner of the window's viewport, in screen coordinates. This value is reported in CSS pixels. See mozScreenPixelsPerCSSPixel in nsIDOMWindowUtils for a conversion factor to adapt to screen pixels if needed.
window.mozInnerScreenY Requires Gecko 1.9.2
Returns the vertical (Y) coordinate of the top-left corner of the window's viewport, in screen coordinates. This value is reported in CSS pixels. See mozScreenPixelsPerCSSPixel for a conversion factor to adapt to screen pixels if needed.
window.mozPaintCount Requires Gecko 2.0
Returns the number of times the current document has been rendered to the screen in this window. This can be used to compute rendering performance.
window.name
Gets/sets the name of the window.
window.navigator
Returns a reference to the navigator object.
window.opener
Returns a reference to the window that opened this current window.
window.outerHeight
Gets the height of the outside of the browser window.
window.outerWidth
Gets the width of the outside of the browser window.
window.pageXOffset
An alias for window.scrollX.
window.pageYOffset
An alias for window.scrollY
window.parent
Returns a reference to the parent of the current window or subframe.
window.personalbar
Returns the personalbar object, whose visibility can be toggled in the window.
window.pkcs11 Obsolete
Formerly provided access to install and remove PKCS11 modules. Now this property is always null.
window.returnValue New in Firefox 3
The return value to be returned to the function that called window.showModalDialog() to display the window as a modal dialog.
window.screen
Returns a reference to the screen object associated with the window.
window.screen.availTop
Specifies the y-coordinate of the first pixel that is not allocated to permanent or semipermanent user interface features.
window.screen.availLeft
Returns the first available pixel available from the left side of the screen.
window.screen.availHeight
Specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows.
window.screen.availWidth
Returns the amount of horizontal space in pixels available to the window.
window.screen.colorDepth
Returns the color depth of the screen.
window.screen.height
Returns the height of the screen in pixels.
window.screen.left
Returns the current distance in pixels from the left side of the screen.
window.screen.pixelDepth
Gets the bit depth of the screen.
window.screen.top
Returns the distance from the top of the screen.
window.screen.width
Returns the width of the screen.
window.screenX
Returns the horizontal distance of the left border of the user's browser from the left side of the screen.
window.screenY
Returns the vertical distance of the top border of the user's browser from the top side of the screen.
window.scrollbars
Returns the scrollbars object, whose visibility can be toggled in the window.
window.scrollMaxX
The maximum offset that the window can be scrolled to horizontally.
(i.e., the document width minus the viewport width)
window.scrollMaxY
The maximum offset that the window can be scrolled to vertically.
(i.e., the document height minus the viewport height)
window.scrollX
Returns the number of pixels that the document has already been scrolled horizontally.
window.scrollY
Returns the number of pixels that the document has already been scrolled vertically.
window.self
Returns an object reference to the window object itself.
window.sessionStorage New in Firefox 2
A storage object for storing data within a single page session.
window.sidebar
Returns a reference to the window object of the sidebar.
window.status
Gets/sets the text in the statusbar at the bottom of the browser.
window.statusbar
Returns the statusbar object, whose visibility can be toggled in the window.
window.toolbar
Returns the toolbar object, whose visibility can be toggled in the window.
window.top
Returns a reference to the topmost window in the window hierarchy.
window.window
Returns a reference to the current window.

Methods
Edit section

window.addEventListener
Register an event handler to a specific event type on the window.
window.alert
Displays an alert dialog.
window.atob
Decodes a string of data which has been encoded using base-64 encoding.
window.back
Moves back one in the window history.
window.blur
Sets focus away from the window.
window.btoa
Creates a base-64 encoded ASCII string from a string of binary data.
window.captureEvents Obsolete
Registers the window to capture all events of the specified type.
window.clearInterval
Cancels the repeated execution set using setInterval.
window.clearTimeout
Clears a delay that's been set for a specific function.
window.close
Closes the current window.
window.confirm
Displays a dialog with a message that the user needs to respond to.
window.createBlobURL() Requires Gecko 2.0
Creates a blob URL.
window.disableExternalCapture
window.dispatchEvent
window.dump
Writes a message to the console.
window.enableExternalCapture 
window.escape
Encodes a string.
window.find
Searches for a given string in a window.
window.focus
Sets focus on the current window.
window.forward
Moves the window one document forward in the history.
window.GeckoActiveXObject
window.getAttention
Flashes the application icon.
window.getAttentionWithCycleCount
window.getComputedStyle
Gets computed style for the specified element. Computed style indicates the computed values of all CSS properties of the element.
window.getSelection
Returns the selection object representing the selected item(s).
window.home
Returns the browser to the home page.
window.maximize
window.minimize (top-level XUL windows only)
Minimizes the window.
window.moveBy
Moves the current window by a specified amount.
window.moveTo
Moves the window to the specified coordinates.
window.mozRequestAnimationFrame Requires Gecko 2.0
Tells the browser that an animation is in progress, requesting that the browser schedule a repaint of the window for the next animation frame. This will cause a MozBeforePaint event to fire before that repaint occurs.
window.open
Opens a new window.
window.openDialog
Opens a new dialog window.
window.postMessage New in Firefox 3
Provides a secure means for one window to send a string of data to another window, which need not be within the same domain as the first, in a secure manner.
window.print
Opens the Print Dialog to print the current document.
window.prompt
Returns the text entered by the user in a prompt dialog.
window.QueryInterface
window.releaseEvents Obsolete
Releases the window from trapping events of a specific type.
window.removeEventListener
Removes an event listener from the window.
window.resizeBy
Resizes the current window by a certain amount.
window.resizeTo
Dynamically resizes window.
window.restore
window.revokeBlobURL() Requires Gecko 2.0
Revokes a blob URL previously created using window.createBlobURL().
window.routeEvent Obsolete
window.scroll
Scrolls the window to a particular place in the document.
window.scrollBy
Scrolls the document in the window by the given amount.
window.scrollByLines
Scrolls the document by the given number of lines.
window.scrollByPages
Scrolls the current document by the specified number of pages.
window.scrollTo
Scrolls to a particular set of coordinates in the document.
window.setCursor
window.setInterval
Execute a function each X milliseconds.
window.setResizable
window.setTimeout
Sets a delay for executing a function.
window.showModalDialog New in Firefox 3
Displays a modal dialog.
window.sizeToContent
Sizes the window according to its content.
window.stop
This method stops window loading.
window.unescape
Unencodes a value that has been encoded in hexadecimal (e.g. a cookie).
window.updateCommands
Updates the state of commands of the current chrome window (UI).
window.XPCNativeWrapper
window.XPCSafeJSObjectWrapper 

Event Handlers
Edit section

window.onabort
An event handler property for abort events on the window.
window.onbeforeunload
An event handler property for before-unload events on the window.
window.onblur
An event handler property for blur events on the window.
window.onchange
An event handler property for change events on the window.
window.onclick
An event handler property for click events on the window.
window.onclose
An event handler property for handling the window close event.
window.oncontextmenu
An event handler property for right-click events on the window.
window.ondragdrop
An event handler property for drag and drop events on the window.
window.onerror
An event handler property for errors raised on the window.
window.onfocus
An event handler property for focus events on the window.
window.onhashchange Requires Gecko 1.9.2
An event handler property for hash change events on the window; called when the part of the URL after the hash mark ("#") changes.
window.onkeydown
An event handler property for keydown events on the window.
window.onkeypress
An event handler property for keypress events on the window.
window.onkeyup
An event handler property for keyup events on the window.
window.onload
An event handler property for window loading.
window.onmousedown
An event handler property for mousedown events on the window.
window.onmousemove
An event handler property for mousemove events on the window.
window.onmouseout
An event handler property for mouseout events on the window.
window.onmouseover
An event handler property for mouseover events on the window.
window.onmouseup
An event handler property for mouseup events on the window.
window.onmozbeforepaint Requires Gecko 2.0
An event handler property for the MozBeforePaint event, which is sent before repainting the window if the event has been requested by a call to the window.mozRequestAnimationFrame() method.
window.onpaint
An event handler property for paint events on the window.
window.onpopstate Requires Gecko 2
An event handler property for popstate events, which are fired when navigating to a session history entry representing a state object.
window.onreset
An event handler property for reset events on the window.
window.onresize
An event handler property for window resizing.
window.onscroll
An event handler property for window scrolling.
window.onselect
An event handler property for window selection.
window.onsubmit
An event handler property for submits on window forms.
window.onunload
An event handler property for unload events on the window.
window.onpageshow
An event handler property for pageshow events on the window.
window.onpagehide
An event handler property for pagehide events on the window.

Fonte da revisão

<p>Esta seção tem uma breve referência sobre os métodos, propriedades, e eventos disponíveis através do objeto <code>window</code>. O objeto <code>window</code> implementa a interface <code>Window</code>, que é herdada da interface <a class=" external" href="http://www.w3.org/TR/DOM-Level-2-Views/views.html#Views-AbstractView" title="http://www.w3.org/TR/DOM-Level-2-Views/views.html#Views-AbstractView"><code>AbstractView</code></a>.</p>
<p>O objeto <code>window</code> representa a própria janela. A propriedade <code>document</code> de <code>window</code> aponta para o <a href="/pt/DOM/document" title="pt/DOM/document">DOM document</a> carregado nesta janela. Uma janela para um dado documento pode ser obtida usando a propriedade <code><a href="../../../../en/DOM%3adocument.defaultView" rel="custom nofollow">document.defaultView</a></code>.</p>
<p>In a tabbed browser, such as Firefox, each tab contains its own <code>window</code> object (and if you're writing an extension, the browser window itself is a separate window too - see <a href="../../../../en/Working_with_windows_in_chrome_code#Content_windows" rel="internal">Working with windows in chrome code</a> for more information). That is, the <code>window</code> object is not shared between tabs in the same window. Some methods, namely <code><a href="../../../../en/DOM%3awindow.resizeTo" rel="custom nofollow">window.resizeTo</a></code> and <code><a href="../../../../en/DOM%3awindow.resizeBy" rel="custom nofollow">window.resizeBy</a></code> apply to the whole window and not to the specific tab the <code>window</code> object belongs to. Generally, anything that can't reasonably pertain to a tab pertains to the window instead.</p>
<div id="section_1">
<h3 class="editable" id="Properties

"><span>Properties</span>
<div class="editIcon"><a href="/../../../../en/DOM/window#" style="visibility: hidden;" title="Edit section"><span class="icon"><img alt="Edit section" class="sectionedit" src="../../../../skins/common/icons/icon-trans.gif"></span></a></div>
</h3>
<dl> <dt><a href="../../../../en/DOM/window.applicationCache" rel="internal">window.applicationCache</a> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;" title="(Firefox 3)">Requires Gecko 1.9</span></dt> <dd>An <code><a href="../../../../en/nsIDOMOfflineResourceList" rel="custom nofollow">nsIDOMOfflineResourceList</a></code> object providing access to the offline resources for the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.closed" rel="internal">window.closed</a></dt> <dd>This property indicates whether the current window is closed or not.</dd>
</dl>
<dl> <dt><a href="../../../../en/Components_object" rel="internal">window.Components</a></dt> <dd>The entry point to many <a href="../../../../en/XPCOM" rel="internal">XPCOM</a> features. Some properties, e.g. <a href="../../../../en/Components.classes" rel="internal">classes</a>, are only available to sufficiently privileged code.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.content" rel="internal">window.content</a> and window._content</dt> <dd>Returns a reference to the content element in the current window. The variant with underscore is deprecated.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.controllers" rel="internal">window.controllers</a></dt> <dd>Returns the XUL controller objects for the current chrome window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.crypto" rel="internal">window.crypto</a></dt> <dd>Returns the browser crypto object.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.defaultStatus" rel="internal">window.defaultStatus</a></dt> <dd>Gets/sets the status bar text for the given window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.dialogArguments" rel="internal">window.dialogArguments</a> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap;">New in <a href="../../../../en/Firefox_3_for_developers" rel="custom nofollow">Firefox 3</a></span></dt> <dd>Gets the arguments passed to the window (if it's a dialog box) at the time <code><a href="../../../../en/DOM/window.showModalDialog" rel="internal">window.showModalDialog()</a></code> was called. This is an <code><a href="../../../../en/XPCOM_Interface_Reference/nsIArray" rel="custom nofollow">nsIArray</a></code>.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.directories" rel="internal">window.directories</a> <span class="lang lang-en"> <span style="border: 1px solid rgb(255, 153, 153); background-color: rgb(255, 219, 219); font-size: x-small; white-space: nowrap; padding: 2px;">Obsolete</span> </span></dt> <dd>Synonym of <code><a href="../../../../en/DOM%3awindow.personalbar" rel="custom nofollow">window.personalbar</a></code></dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.document" rel="internal">window.document</a></dt> <dd>Returns a reference to the document that the window contains.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.frameElement" rel="internal">window.frameElement</a></dt> <dd>Returns the element in which the window is embedded, or null if the window is not embedded.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.frames" rel="internal">window.frames</a></dt> <dd>Returns an array of the subframes in the current window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.fullScreen" rel="internal">window.fullScreen</a> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;" title="(Firefox 3)">Requires Gecko 1.9</span></dt> <dd>This property indicates whether the window is displayed in full screen or not.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/Storage#globalStorage" rel="internal">window.globalStorage</a> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;" title="(Firefox 2 / Thunderbird 2)">Requires Gecko 1.8.1</span> <span class="lang lang-en"><span style="border: 1px solid rgb(255, 213, 153); background-color: rgb(255, 239, 217); font-size: x-small; white-space: nowrap; padding: 2px;">Non-standard</span></span></dt> <dd>Multiple storage objects that are used for storing data across multiple pages.  Note that this is non-standard; it is recommended that you use <a class="internal" href="../../../../en/DOM/Storage#localStorage" rel="internal">window.localStorage</a> instead.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.history" rel="internal">window.history</a></dt> <dd>Returns a reference to the history object.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.innerHeight" rel="internal">window.innerHeight</a></dt> <dd>Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.innerWidth" rel="internal">window.innerWidth</a></dt> <dd>Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.length" rel="internal">window.length</a></dt> <dd>Returns the number of frames in the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.location" rel="internal">window.location</a></dt> <dd>Gets/sets the location, or current URL, of the window object.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.locationbar" rel="internal">window.locationbar</a></dt> <dd>Returns the locationbar object, whose visibility can be toggled in the window.</dd>
</dl>
<dl> <dt><a class="internal" href="../../../../en/DOM/Storage#localStorage" rel="internal">window.localStorage</a> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;" title="(Firefox 3.5 / Thunderbird 3 / SeaMonkey 2)">Requires Gecko 1.9.1</span></dt> <dd>Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.menubar" rel="internal">window.menubar</a></dt> <dd>Returns the menubar object, whose visibility can be toggled in the window.</dd> <dt><code><a href="../../../../en/DOM/window.mozAnimationStartTime" rel="custom nofollow">window.mozAnimationStartTime</a></code> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;" title="(Firefox 4)">Requires Gecko 2.0</span></dt> <dd>The time in milliseconds since epoch at which the current animation cycle began.</dd> <dt><a class="internal" href="../../../../en/DOM/window.mozInnerScreenX" rel="internal">window.mozInnerScreenX</a> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;" title="(Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)">Requires Gecko 1.9.2</span></dt> <dd>Returns the horizontal (X) coordinate of the top-left corner of the window's viewport, in screen coordinates. This value is reported in CSS pixels. See <code>mozScreenPixelsPerCSSPixel</code> in <code><a href="../../../../en/XPCOM_Interface_Reference/nsIDOMWindowUtils" rel="custom nofollow">nsIDOMWindowUtils</a></code> for a conversion factor to adapt to screen pixels if needed.</dd> <dt><a class="internal" href="../../../../en/DOM/window.mozInnerScreenY" rel="internal">window.mozInnerScreenY</a> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;" title="(Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)">Requires Gecko 1.9.2</span></dt> <dd>Returns the vertical (Y) coordinate of the top-left corner of the window's viewport, in screen coordinates. This value is reported in CSS pixels. See <code>mozScreenPixelsPerCSSPixel</code> for a conversion factor to adapt to screen pixels if needed.</dd> <dt><a href="../../../../en/DOM/window.mozPaintCount" rel="internal">window.mozPaintCount</a> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;" title="(Firefox 4)">Requires Gecko 2.0</span></dt> <dd>Returns the number of times the current document has been rendered to the screen in this window. This can be used to compute rendering performance.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.name" rel="internal">window.name</a></dt> <dd>Gets/sets the name of the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.navigator" rel="internal">window.navigator</a></dt> <dd>Returns a reference to the navigator object.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.opener" rel="internal">window.opener</a></dt> <dd>Returns a reference to the window that opened this current window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.outerHeight" rel="internal">window.outerHeight</a></dt> <dd>Gets the height of the outside of the browser window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.outerWidth" rel="internal">window.outerWidth</a></dt> <dd>Gets the width of the outside of the browser window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.scrollX" rel="internal">window.pageXOffset</a></dt> <dd>An alias for <a href="../../../../en/DOM/window.scrollX" rel="internal">window.scrollX</a>.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.scrollY" rel="internal">window.pageYOffset</a></dt> <dd>An alias for <a href="../../../../en/DOM/window.scrollY" rel="internal">window.scrollY</a></dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.parent" rel="internal">window.parent</a></dt> <dd>Returns a reference to the parent of the current window or subframe.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.personalbar" rel="internal">window.personalbar</a></dt> <dd>Returns the personalbar object, whose visibility can be toggled in the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.pkcs11" rel="internal">window.pkcs11</a> <span class="lang lang-en"> <span style="border: 1px solid rgb(255, 153, 153); background-color: rgb(255, 219, 219); font-size: x-small; white-space: nowrap; padding: 2px;">Obsolete</span> </span></dt> <dd>Formerly provided access to install and remove PKCS11 modules. Now this property is always null.</dd>
</dl>
<dl> <dt><a class="new " href="../../../../en/DOM/window.returnValue" rel="internal">window.returnValue</a> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap;">New in <a href="../../../../en/Firefox_3_for_developers" rel="custom nofollow">Firefox 3</a></span></dt> <dd>The return value to be returned to the function that called <code><a href="../../../../en/DOM/window.showModalDialog" rel="internal">window.showModalDialog()</a></code> to display the window as a modal dialog.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.screen" rel="internal">window.screen</a></dt> <dd>Returns a reference to the screen object associated with the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.screen.availTop" rel="internal">window.screen.availTop</a></dt> <dd>Specifies the y-coordinate of the first pixel that is not allocated to permanent or semipermanent user interface features.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.screen.availLeft" rel="internal">window.screen.availLeft</a></dt> <dd>Returns the first available pixel available from the left side of the screen.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.screen.availHeight" rel="internal">window.screen.availHeight</a></dt> <dd>Specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.screen.availWidth" rel="internal">window.screen.availWidth</a></dt> <dd>Returns the amount of horizontal space in pixels available to the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.screen.colorDepth" rel="internal">window.screen.colorDepth</a></dt> <dd>Returns the color depth of the screen.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.screen.height" rel="internal">window.screen.height</a></dt> <dd>Returns the height of the screen in pixels.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.screen.left" rel="internal">window.screen.left</a></dt> <dd>Returns the current distance in pixels from the left side of the screen.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.screen.pixelDepth" rel="internal">window.screen.pixelDepth</a></dt> <dd>Gets the bit depth of the screen.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.screen.top" rel="internal">window.screen.top</a></dt> <dd>Returns the distance from the top of the screen.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.screen.width" rel="internal">window.screen.width</a></dt> <dd>Returns the width of the screen.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.screenX" rel="internal">window.screenX</a></dt> <dd>Returns the horizontal distance of the left border of the user's browser from the left side of the screen.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.screenY" rel="internal">window.screenY</a></dt> <dd>Returns the vertical distance of the top border of the user's browser from the top side of the screen.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.scrollbars" rel="internal">window.scrollbars</a></dt> <dd>Returns the scrollbars object, whose visibility can be toggled in the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.scrollMaxX" rel="internal">window.scrollMaxX</a></dt> <dd>The maximum offset that the window can be scrolled to horizontally.</dd> <dd>(i.e., the document width minus the viewport width)</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.scrollMaxY" rel="internal">window.scrollMaxY</a></dt> <dd>The maximum offset that the window can be scrolled to vertically.</dd> <dd>(i.e., the document height minus the viewport height)</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.scrollX" rel="internal">window.scrollX</a></dt> <dd>Returns the number of pixels that the document has already been scrolled horizontally.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.scrollY" rel="internal">window.scrollY</a></dt> <dd>Returns the number of pixels that the document has already been scrolled vertically.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.self" rel="internal">window.self</a></dt> <dd>Returns an object reference to the window object itself.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/Storage#sessionStorage" rel="internal">window.sessionStorage</a> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap;">New in <a href="../../../../en/Firefox_2_for_developers" rel="custom nofollow">Firefox 2</a></span></dt> <dd>A storage object for storing data within a single page session.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.sidebar" rel="internal">window.sidebar</a></dt> <dd>Returns a reference to the window object of the sidebar.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.status" rel="internal">window.status</a></dt> <dd>Gets/sets the text in the statusbar at the bottom of the browser.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.statusbar" rel="internal">window.statusbar</a></dt> <dd>Returns the statusbar object, whose visibility can be toggled in the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.toolbar" rel="internal">window.toolbar</a></dt> <dd>Returns the toolbar object, whose visibility can be toggled in the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.top" rel="internal">window.top</a></dt> <dd>Returns a reference to the topmost window in the window hierarchy.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.window" rel="internal">window.window</a></dt> <dd>Returns a reference to the current window.</dd>
</dl>
</div>
<div id="section_2">
<h3 class="editable" id="Methods

"><span>Methods</span>
<div class="editIcon"><a href="/../../../../en/DOM/window#" style="visibility: hidden;" title="Edit section"><span class="icon"><img alt="Edit section" class="sectionedit" src="../../../../skins/common/icons/icon-trans.gif"></span></a></div>
</h3>
<dl> <dt><a href="../../../../en/DOM/element.addEventListener" rel="internal">window.addEventListener</a></dt> <dd>Register an event handler to a specific event type on the window.</dd> <dt><a href="../../../../en/DOM/window.alert" rel="internal">window.alert</a></dt> <dd>Displays an alert dialog.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.atob" rel="internal">window.atob</a></dt> <dd>Decodes a string of data which has been encoded using base-64 encoding.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.back" rel="internal">window.back</a></dt> <dd>Moves back one in the window history.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.blur" rel="internal">window.blur</a></dt> <dd>Sets focus away from the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.btoa" rel="internal">window.btoa</a></dt> <dd>Creates a base-64 encoded ASCII string from a string of binary data.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.captureEvents" rel="internal">window.captureEvents</a> <span class="lang lang-en"> <span style="border: 1px solid rgb(255, 153, 153); background-color: rgb(255, 219, 219); font-size: x-small; white-space: nowrap; padding: 2px;">Obsolete</span> </span></dt> <dd>Registers the window to capture all events of the specified type.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.clearInterval" rel="internal">window.clearInterval</a></dt> <dd>Cancels the repeated execution set using <code>setInterval</code>.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.clearTimeout" rel="internal">window.clearTimeout</a></dt> <dd>Clears a delay that's been set for a specific function.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.close" rel="internal">window.close</a></dt> <dd>Closes the current window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.confirm" rel="internal">window.confirm</a></dt> <dd>Displays a dialog with a message that the user needs to respond to.</dd>
</dl>
<dl> <dt><code><a href="../../../../en/DOM/window.createBlobURL" rel="custom nofollow">window.createBlobURL()</a></code> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;" title="(Firefox 4)">Requires Gecko 2.0</span></dt> <dd>Creates a blob URL.</dd>
</dl>
<dl> <dt><a class="new internal" href="../../../../En/DOM/window.disableExternalCapture" rel="internal">window.disableExternalCapture</a></dt> <dt> </dt><dt><a class="internal" href="../../../../En/DOM/Window.dispatchEvent" rel="internal">window.dispatchEvent</a></dt>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.dump" rel="internal">window.dump</a></dt> <dd>Writes a message to the console.</dd>
</dl>
<dl> <dt><a class="new internal" href="../../../../En/DOM/window.enableExternalCapture" rel="internal">window.enableExternalCapture</a> </dt>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.escape" rel="internal">window.escape</a></dt> <dd>Encodes a string.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.find" rel="internal">window.find</a></dt> <dd>Searches for a given string in a window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.focus" rel="internal">window.focus</a></dt> <dd>Sets focus on the current window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.forward" rel="internal">window.forward</a></dt> <dd>Moves the window one document forward in the history.</dd>
</dl>
<dl> <dt><a class="internal" href="../../../../En/DOM/Window.GeckoActiveXObject" rel="internal">window.GeckoActiveXObject</a></dt>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.getAttention" rel="internal">window.getAttention</a></dt> <dd>Flashes the application icon.</dd>
</dl>
<dl> <dt><a class="new internal" href="../../../../En/DOM/window.getAttentionWithCycleCount" rel="internal">window.getAttentionWithCycleCount</a></dt>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.getComputedStyle" rel="internal">window.getComputedStyle</a></dt> <dd>Gets computed style for the specified element. Computed style indicates the computed values of all CSS properties of the element.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.getSelection" rel="internal">window.getSelection</a></dt> <dd>Returns the selection object representing the selected item(s).</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.home" rel="internal">window.home</a></dt> <dd>Returns the browser to the home page.</dd>
</dl>
<dl> <dt><a class="new internal" href="../../../../En/DOM/window.maximize" rel="internal">window.maximize</a></dt>
</dl>
<dl> <dt><a class="new internal" href="../../../../En/DOM/window.minimize" rel="internal">window.minimize</a> (top-level XUL windows only)</dt> <dd>Minimizes the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.moveBy" rel="internal">window.moveBy</a></dt> <dd>Moves the current window by a specified amount.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.moveTo" rel="internal">window.moveTo</a></dt> <dd>Moves the window to the specified coordinates.</dd> <dt><code><a href="../../../../en/DOM/window.mozRequestAnimationFrame" rel="custom nofollow">window.mozRequestAnimationFrame</a></code> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;" title="(Firefox 4)">Requires Gecko 2.0</span></dt> <dd>Tells the browser that an animation is in progress, requesting that the browser schedule a repaint of the window for the next animation frame. This will cause a <code>MozBeforePaint</code> event to fire before that repaint occurs.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.open" rel="internal">window.open</a></dt> <dd>Opens a new window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.openDialog" rel="internal">window.openDialog</a></dt> <dd>Opens a new dialog window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.postMessage" rel="internal">window.postMessage</a> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap;">New in <a href="../../../../en/Firefox_3_for_developers" rel="custom nofollow">Firefox 3</a></span></dt> <dd>Provides a secure means for one window to send a string of data to another window, which need not be within the same domain as the first, in a secure manner.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.print" rel="internal">window.print</a></dt> <dd>Opens the Print Dialog to print the current document.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.prompt" rel="internal">window.prompt</a></dt> <dd>Returns the text entered by the user in a prompt dialog.</dd>
</dl>
<dl> <dt><a class="internal" href="../../../../En/DOM/Window.QueryInterface" rel="internal">window.QueryInterface</a></dt>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.releaseEvents" rel="internal">window.releaseEvents</a> <span class="lang lang-en"> <span style="border: 1px solid rgb(255, 153, 153); background-color: rgb(255, 219, 219); font-size: x-small; white-space: nowrap; padding: 2px;">Obsolete</span> </span></dt> <dd>Releases the window from trapping events of a specific type.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/element.removeEventListener" rel="internal">window.removeEventListener</a></dt> <dd>Removes an event listener from the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.resizeBy" rel="internal">window.resizeBy</a></dt> <dd>Resizes the current window by a certain amount.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.resizeTo" rel="internal">window.resizeTo</a></dt> <dd>Dynamically resizes window.</dd>
</dl>
<dl> <dt><a class="new internal" href="../../../../En/DOM/window.restore" rel="internal">window.restore</a></dt> <dt>
</dt></dl>
<dl> <dt><code><a href="../../../../en/DOM/window.revokeBlobURL" rel="custom nofollow">window.revokeBlobURL()</a></code> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;" title="(Firefox 4)">Requires Gecko 2.0</span></dt> <dd>Revokes a blob URL previously created using <code><a href="../../../../en/DOM/window.createBlobURL" rel="custom nofollow">window.createBlobURL()</a></code>.</dd>
</dl>
<dl> <dt><a class="internal" href="../../../../En/DOM/Window.routeEvent" rel="internal">window.routeEvent</a> <span class="lang lang-en"> <span style="border: 1px solid rgb(255, 153, 153); background-color: rgb(255, 219, 219); font-size: x-small; white-space: nowrap; padding: 2px;">Obsolete</span> </span></dt>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.scroll" rel="internal">window.scroll</a></dt> <dd>Scrolls the window to a particular place in the document.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.scrollBy" rel="internal">window.scrollBy</a></dt> <dd>Scrolls the document in the window by the given amount.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.scrollByLines" rel="internal">window.scrollByLines</a></dt> <dd>Scrolls the document by the given number of lines.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.scrollByPages" rel="internal">window.scrollByPages</a></dt> <dd>Scrolls the current document by the specified number of pages.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.scrollTo" rel="internal">window.scrollTo</a></dt> <dd>Scrolls to a particular set of coordinates in the document.</dd>
</dl>
<dl> <dt><a class="internal" href="../../../../en/DOM/window.setCursor" rel="internal">window.setCursor</a></dt>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.setInterval" rel="internal">window.setInterval</a></dt> <dd>Execute a function each X milliseconds.</dd>
</dl>
<dl> <dt><a class="new internal" href="../../../../En/DOM/window.setResizable" rel="internal">window.setResizable</a></dt>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.setTimeout" rel="internal">window.setTimeout</a></dt> <dd>Sets a delay for executing a function.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.showModalDialog" rel="internal">window.showModalDialog</a> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap;">New in <a href="../../../../en/Firefox_3_for_developers" rel="custom nofollow">Firefox 3</a></span></dt> <dd>Displays a modal dialog.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.sizeToContent" rel="internal">window.sizeToContent</a></dt> <dd>Sizes the window according to its content.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.stop" rel="internal">window.stop</a></dt> <dd>This method stops window loading.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.unescape" rel="internal">window.unescape</a></dt> <dd>Unencodes a value that has been encoded in hexadecimal (e.g. a cookie).</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.updateCommands" rel="internal">window.updateCommands</a></dt> <dd>Updates the state of commands of the current chrome window (UI).</dd>
</dl>
<dl> <dt><a class="internal" href="../../../../en/XPCNativeWrapper" rel="internal">window.XPCNativeWrapper</a></dt> <dt> </dt><dt><a class="internal" href="../../../../En/DOM/Window.XPCSafeJSObjectWrapper" rel="internal">window.XPCSafeJSObjectWrapper</a> </dt>
</dl>
</div>
<h3 class="editable" id="Event_Handlers

"><span>Event Handlers</span>
<div class="editIcon"><a href="/../../../../en/DOM/window#" title="Edit section"><span class="icon"><img alt="Edit section" class="sectionedit" src="../../../../skins/common/icons/icon-trans.gif"></span></a></div>
</h3>
<dl> <dt><a href="../../../../en/DOM/window.onabort" rel="internal">window.onabort</a></dt> <dd>An event handler property for abort events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onbeforeunload" rel="internal">window.onbeforeunload</a></dt> <dd>An event handler property for before-unload events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onblur" rel="internal">window.onblur</a></dt> <dd>An event handler property for blur events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onchange" rel="internal">window.onchange</a></dt> <dd>An event handler property for change events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onclick" rel="internal">window.onclick</a></dt> <dd>An event handler property for click events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onclose" rel="internal">window.onclose</a></dt> <dd>An event handler property for handling the window close event.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.oncontextmenu" rel="internal">window.oncontextmenu</a></dt> <dd>An event handler property for right-click events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.ondragdrop" rel="internal">window.ondragdrop</a></dt> <dd>An event handler property for drag and drop events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onerror" rel="internal">window.onerror</a></dt> <dd>An event handler property for errors raised on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onfocus" rel="internal">window.onfocus</a></dt> <dd>An event handler property for focus events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onhashchange" rel="internal">window.onhashchange</a> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;" title="(Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)">Requires Gecko 1.9.2</span></dt> <dd>An event handler property for hash change events on the window; called when the part of the URL after the hash mark ("#") changes.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onkeydown" rel="internal">window.onkeydown</a></dt> <dd>An event handler property for keydown events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onkeypress" rel="internal">window.onkeypress</a></dt> <dd>An event handler property for keypress events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onkeyup" rel="internal">window.onkeyup</a></dt> <dd>An event handler property for keyup events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onload" rel="internal">window.onload</a></dt> <dd>An event handler property for window loading.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onmousedown" rel="internal">window.onmousedown</a></dt> <dd>An event handler property for mousedown events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onmousemove" rel="internal">window.onmousemove</a></dt> <dd>An event handler property for mousemove events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onmouseout" rel="internal">window.onmouseout</a></dt> <dd>An event handler property for mouseout events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onmouseover" rel="internal">window.onmouseover</a></dt> <dd>An event handler property for mouseover events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onmouseup" rel="internal">window.onmouseup</a></dt> <dd>An event handler property for mouseup events on the window.</dd> <dt><code><a href="../../../../en/DOM/window.onmozbeforepaint" rel="custom nofollow">window.onmozbeforepaint</a></code> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;" title="(Firefox 4)">Requires Gecko 2.0</span></dt> <dd>An event handler property for the <code>MozBeforePaint</code> event, which is sent before repainting the window if the event has been requested by a call to the <code><a href="../../../../en/DOM/window.mozRequestAnimationFrame" rel="custom nofollow">window.mozRequestAnimationFrame()</a></code> method.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onpaint" rel="internal">window.onpaint</a></dt> <dd>An event handler property for paint events on the window.</dd> <dt><a href="../../../../en/DOM/window.onpopstate" rel="internal">window.onpopstate</a> <span style="border: 1px solid rgb(129, 129, 81); background-color: rgb(255, 255, 225); font-size: x-small; white-space: nowrap; padding: 2px;" title="(Firefox 4)">Requires Gecko 2</span></dt> <dd>An event handler property for popstate events, which are fired when navigating to a session history entry representing a state object.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onreset" rel="internal">window.onreset</a></dt> <dd>An event handler property for reset events on the window.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onresize" rel="internal">window.onresize</a></dt> <dd>An event handler property for window resizing.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onscroll" rel="internal">window.onscroll</a></dt> <dd>An event handler property for window scrolling.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onselect" rel="internal">window.onselect</a></dt> <dd>An event handler property for window selection.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onsubmit" rel="internal">window.onsubmit</a></dt> <dd>An event handler property for submits on window forms.</dd>
</dl>
<dl> <dt><a href="../../../../en/DOM/window.onunload" rel="internal">window.onunload</a></dt> <dd>An event handler property for unload events on the window.</dd>
</dl>
<dl> <dt><a class="new " href="../../../../en/DOM/window.onpageshow" rel="internal">window.onpageshow</a></dt> <dd>An event handler property for pageshow events on the window.</dd>
</dl>
<dl> <dt><a class="new " href="../../../../en/DOM/window.onpagehide" rel="internal">window.onpagehide</a></dt> <dd>An event handler property for pagehide events on the window.</dd>
</dl>
Reverter para esta revisão