Html Dom Window Object

  • Uploaded by: satyanarayana
  • 0
  • 0
  • December 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Html Dom Window Object as PDF for free.

More details

  • Words: 572
  • Pages: 2
HTML DOM Window Object Window Object The Window object is the top level object in the JavaScript hierarchy. The Window object represents a browser window. A Window object is created automatically with every instance of a or tag. IE: Internet Explorer, F: Firefox, O: Opera.

Window Object Collections Collection frames[]

Description Returns all named frames in the window

IE 4

F 1

O 9

IE 4 4 4 4 4 4 4 4 No No No

F 1 No 1 1 1 1 1 1 No No No

O 9 9 9 9 9 9 9 9 No No No

No

No

No

4

1

9

4 4

1 No

9 9

4

1

9

IE 4 4

F 1 1

O 9 9

Window Object Properties Property closed defaultStatus document history

Description Returns whether or not a window has been closed Sets or returns the default text in the statusbar of the window See Document object See History object

length location name opener outerheight outerwidth

Sets or returns the number of frames in the window See Location object

pageXOffset pageYOffset parent personalbar scrollbars self status statusbar toolbar

top

Sets or returns the name of the window Returns a reference to the window that created the window Sets or returns the outer height of a window Sets or returns the outer width of a window Sets or returns the X position of the current page in relation to the upper left corner of a window's display area Sets or returns the Y position of the current page in relation to the upper left corner of a window's display area Returns the parent window Sets whether or not the browser's personal bar (or directories bar) should be visible Sets whether or not the scrollbars should be visible Returns a reference to the current window Sets the text in the statusbar of a window Sets whether or not the browser's statusbar should be visible Sets whether or not the browser's tool bar is visible or not (can only be set before the window is opened and you must have UniversalBrowserWrite privilege) Returns the topmost ancestor window

Window Object Methods Method alert() blur()

Description Displays an alert box with a message and an OK button Removes focus from the current window

clearInterval() clearTimeout() close() confirm() createPopup() focus() moveBy() moveTo() open() print() prompt() resizeBy() resizeTo() scrollBy() scrollTo() setInterval() setTimeout()

Cancels a timeout set with setInterval() Cancels a timeout set with setTimeout() Closes the current window Displays a dialog box with a message and an OK and a Cancel button Creates a pop-up window Sets focus to the current window Moves a window relative to its current position Moves a window to the specified position Opens a new browser window Prints the contents of the current window Displays a dialog box that prompts the user for input Resizes a window by the specified pixels Resizes a window to the specified width and height Scrolls the content by the specified number of pixels Scrolls the content to the specified coordinates Evaluates an expression at specified intervals Evaluates an expression after a specified number of milliseconds

4 4 4 4 4 4 4 4 4 5 4 4 4 4 4 4 4

1 1 1 1 No 1 1 1 1 1 1 1 1.5 1 1 1 1

9 9 9 9 No 9 9 9 9 9 9 9 9 9 9 9 9

Related Documents

Html Dom Window Object
December 2019 47
Javascript And Dom Html
November 2019 28
Html Dom Tutorial
July 2020 6
Html Dom Tutorial
November 2019 13
Window
May 2020 19

More Documents from "sicmul123"

Cascading Style Sheets (css)
December 2019 56
Javascript.st1
December 2019 76
Jsp
December 2019 66
Jf4_60
December 2019 53