• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part VII: Appendixes > The window Object [2|3|I]

The window Object [2|3|I]

The window object is the top-level object for each window or frame and the parent object for the document, location, and history objects.

Properties

  • defaultStatus— A string value containing the default value displayed in the status bar.

  • frames— An array of objects for each frame in a window. Frames appear in the array in the order in which they appear in the HTML source code.

  • innerHeight()— Specifies the vertical size of the content area (in pixels). New in JavaScript 1.2 and later.

  • innerWidth()— Specifies the horizontal size of the content area (in pixels). New in JavaScript 1.2 and later.

  • length— An integer value indicating the number of frames in a parent window. (Not I.)

  • name— A string value containing the name of the window or frame.

  • opener— A reference to the window object containing the open() method used to open the current window. (Not 2|I.)

  • pageXOffset— Specifies the current x position of the viewable window area (expressed in pixels). New in JavaScript 1.2 and later.

  • pageYOffset— Specifies the current y position of the viewable window area (expressed in pixels). New in JavaScript 1.2 and later.

  • parent— A string indicating the name of the window containing the frameset.

  • personalbar [visible=true,false]— Represents the Directories bar in Netscape Navigator and whether it's visible. New in JavaScript 1.2 and later.

  • scrollbars [visible=true,false]— Represents the scrollbars of the instant window and whether they are visible. New in JavaScript 1.2 and later.

  • self— An alternative for the name of the current window.

  • status— Used to display a message in the status bar; it's done by assigning values to this property.

  • statusbar=[true,false,1,0]— Specifies whether the status bar of the target window is visible.

  • toolbar=[true,false,1,0]— Specifies whether the toolbar of the target window is visible.

  • top— An alternative for the name of the topmost window.

  • window— An alternative for the name of the current window.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint