Window Object Properties
suggest changeThe Window Object contains the following properties.
| Property | Description |
|---|---|
| window.closed | Whether the window has been closed |
| window.length | Number of child browsing contexts in the window |
| window.name | Gets or sets the name of the window |
| window.innerHeight | Height of the viewport |
| window.innerWidth | Width of the viewport |
| window.screenX | X-coordinate of the window, relative to the top left corner of the screen |
| window.screenY | Y-coordinate of the window, relative to the top left corner of the screen |
| window.location | Location object for the window (its current URL) |
| window.history | Reference to history object for browser window or tab. |
| window.screen | Reference to screen object |
| window.pageXOffset | Distance document has been scrolled horizontally |
| window.pageYOffset | Distance document has been scrolled vertically |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents