Window

JavaScript1.0+, JScript1.0+ Nav2+, IE3+, Opera3+ Syntax

Core client-side JavaScript object.

Description

The Window object is one of the top-level JavaScript objects that are created when a <body>, <frameset>, or <frame> tag is encountered. Instances of this object can also be created by using the Window.open() method. Table 7.47 lists the properties and methods associated with the Window object.

Table 7.47. Methods and Properties of the Window Object
Type Item Description
Methods alert Displays an alert dialog box with the text string passed.
  back Loads the previous page in place of the window instance.
  blur Removes the focus from a window.
  captureEvents Sets the window to capture all events of a specified type.
 

Get Pure JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.