TOC PREV NEXT INDEX

domref


DOM window Reference

This chapter provides a brief reference for all of the methods, properties, and events available through the DOM window object.

The window object represents the window itself. Typically, window contains the document as a child (see DOM Document Reference), provides access to the window.navigator and window.screen objects for manipulating the browsing environment itself, and provides a number of special properties for accessing the object model below it.

DOM window Interface


The properties, methods, and event handlers of the window object are given here.

Properties

Returns a reference to the content element in the current window.
This property indicates whether the current window is closed or not.
Returns an array of the
components installed in the browser.
Returns the XUL controller objects for the current chrome window.
Returns the browser crypto object
Gets/sets the status bar text for the given window.
Returns a reference to the directories toolbar in the current chrome.
Returns a reference to the document that the window contains.
Returns an array of the subframes in the current window.
Returns a reference to the history object.
Gets/sets the height of the content area of the browser window.
Gets/sets the height of the content area of the browser window.
Returns the number of frames in the window.
Gets/sets the location, or current URL, of the window object.
Returns the locationbar object, whose visibility can be toggled in the window.
Returns the menubar object, whose visibility can be toggled in the window.
Gets/sets the name of the window.
Returns a reference to the navigator object.
Returns the internal "code" name of the current browser.
Returns the official name of the browser.
Returns the version of the browser as a string.
Returns a boolean indicating whether cookies are enabled in the browser or not.
Returns a string representing the language version of the browser.
Returns a list of the MIME types supported by the browser.

Returns a string that represents the current operating system.

Returns a string representing the platform of the browser.

Returns an array of the plugins installed in the browser.

Returns the product name of the browser (e.g., "Gecko")

Returns the product version number (e.g., "5.0")

Returns the user agent string for the current browser.

Returns the vendor name of the current browser (e.g., "Netscape6")

Returns the vendor version number (e.g., "6.1")

Returns a reference to the window that opened this current window.

Gets/sets the height of the outside of the browser window.

Gets/sets the width of the outside of the browser window.

Gets the amount of content that has been hidden by scrolling to the right

Gets the amount of content that has been hidden by scrolling down.

Returns a reference to the parent of the current window or subframe.

Returns the personalbar object, whose visibility can be toggled in the window.

Returns the pkcs11 object , which can be used to install drivers other software associated with the pkcs11 protocol.

Returns a reference to the prompt window, if any, currently displayed.

Returns a reference to the screen object associated with the window.

Specifies the y-coordinate of the first pixel that is not allocated to permanent or semipermanent user interface features.

Returns the first available pixel available from the left side of the screen.

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.

Returns the amount of horizontal space in pixels available to the window.

Returns the color depth of the screen.

Returns the height of the screen in pixels.

Gets/sets the current distance in pixels from the left side of the screen.

Getst the bit depth of the screen.

Gets/sets the distance from the top of the screen.

Returns the width of the screen.

Returns the horizontal distance of the left border of the user's browser from the left side of the screen.

Returns the vertical distance of the top border of the user's browser from the top side of the screen.

Returns the scrollbars object, whose visibility can be toggled in the window.

Returns the number of pixels that the document has already been scrolled horizontally.

Returns the number of pixels that the document has already been scrolled vertically.

Returns an object reference to the window object itself.

Returns a reference to the window object of the sidebar.

Gets/sets the text in the statusbar at the bottom of the browser.

Returns the statusbar object, whose visibility can be toggled in the window.

Returns the toolbar object, whose visibility can be toggled in the window.

Returns a reference to the topmost window in the window hierarchy.

Returns a reference to the current window.


Methods

Displays an alert dialog.
Moves back one in the window history.
Sets focus away from the window.
Registers the window to capture all events of the specified type.
Clears a delay that's been set for a specific function.
Clears the delay set by window.setTimeout().
Closes the current window.
Displays a dialog with a message that the user needs to respond to.
Writes a message to the console.
Encodes a string.
Sets focus on the current window.
Moves the window one document forward in the history.
Flashes the application icon.
Returns the selection object representing the selected item(s).
Returns the browser to the home page.
Moves the current window by a specified amount.
Moves the window to the specified coordinates.
Opens a new window.
Prints the current document.
Returns the text entered by the user in a prompt dialog.
Releases the window from trapping events of a specific type.
Resizes the current window by a certain amount.
Dynamically resizes window.
Scrolls the window to a particular place in the document.
Scrolls the document in the window by the given amount.
Scrolls the document by the given number of lines.
Scrolls the current document by the specified number of pages.
Scrolls to a particular set of coordinates in the document.
Changes the cursor.
Set a delay for a specific function.
Sets a delay for executing a function.
Sizes the window according to its content.
This method stops window loading.
Unencodes a value that has been encoded in hexadecimal (e.g., a cookie).


Event Handlers

An event handler property for abort events on the window.
An event handler property for blur events on the window.
An event handler property for change events on the window.
An event handler property for click events on the window.
An event handler property for handling the window close event.
An event handler property for drag and drop events on the window.
An event handler property for errors raised on the window.
An event handler property for focus events on the window.
An event handler property for keydown events on the window.
An event handler property for keypress events on the window.
An event handler property for keyup events on the window.
An event handler property for window loading.
An event handler property for mousedown events on the window.
An event handler property for mousemove events on the window.
An event handler property for mouseout events on the window.
An event handler property for mouseover events on the window.
An event handler property for mouseup events on the window.
An event handler property for paint events on the window.
An event handler property for reset events on the window.
An event handler property for window resizing
An event handler property for window scrolling.
An event handler property for window selection.
An event handler property for submits on window forms
An event handler property for unload events on the window.


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX