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
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
Netscape Communications http://developer.netscape.com |