Name
Window — a web browser window or frame
Availability
Client-side JavaScript 1.0; enhanced in JavaScript 1.1 and 1.2
Synopsis
self window window.frames[i]
Properties
The Window object defines the following properties. Nonportable, browser-specific properties are listed separately after this list:
- closed
Whether a window has been closed. JavaScript 1.1.
- defaultStatus
The default status line text.
- document
The Document of the window.
- frames[]
List of frames within a window.
- history
The history of the window.
- length
The number of frames in the window.
- location
The URL of the window.
- name
The name of a window. JavaScript 1.0; read/write in JavaScript 1.1.
- navigator
A reference to the Navigator object.
- offscreenBuffering
Whether window updates are buffered. JavaScript 1.2.
- opener
The window that opened this one. JavaScript 1.1.
- parent
The parent of a frame.
- screen
Information about the screen. JavaScript 1.2.
- self
The window itself.
- status
Specify a transient status-line message.
- top
The window of a frame.
- window
The window itself.
Navigator Properties
- crypto
Reference to the Crypto object. Navigator 4.04 and later.
- innerHeight
The height of the document display area. Navigator 4; UniversalBrowserWrite privilege required to set to less than 100 pixels.
- innerWidth
The width of the document display area. Navigator 4; UniversalBrowserWrite privilege required to set to less than 100 pixels.
- java
The java.* LiveConnect package. Navigator 3.
- locationbar
The visibility of the browser’s location bar. Navigator 4; UniversalBrowserWrite ...
Get Webmaster in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.