Name
Window
Synopsis
self windowwindow.frames[i]
Properties
The Window object defines the following properties. Non-portable, browser-specific properties are listed separately after this list. Note that the Window object is the Global object for client-side JavaScript; therefore the Window object also has the properties listed on the Global reference page.
closedA read-only boolean value that specifies whether the window has been closed.
defaultStatusA read/write string that specifies a persistent message to appear in the status line whenever the browser is not displaying another message.
documentA read-only reference to the Document object contained in this window or frame. See Document.
frames[ ]An array of Window objects, one for each frame contained within the this window. Note that frames referenced by the
frames[ ]array may themselves contain frames and may have aframes[ ]array of their own.historyA read-only reference to the History object of this window or frame. See History.
lengthSpecifies the number of frames contained in this window or frame. Same as
frames.length.locationThe Location object for this window or frame. See Location. This property has special behavior: if you assign a URL string to it, the browser loads and displays that URL.
nameA string that contains the name of the window or frame. The name is specified with the
Window.open( )method, or with thenameattribute of a<frame>tag. Read-only in JS 1.0; read/write in JS 1.1.navigatorA read-only reference to the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access