Window

{
  "innerHeight": "Required, number type, represents the inner height of the window (in pixels)",
  "innerWidth": "Required, number type, represents the inner width of the window (in pixels)",
  "location": {
    "hash": "Optional, string type, represents the fragment identifier in the URL (content after #)",
    "host": "Required, string type, represents the hostname and port number of the URL",
    "hostname": "Required, string type, represents the hostname of the URL",
    "href": "Required, string type, represents the complete URL address",
    "origin": "Required, string type, represents the origin of the URL (protocol + host + port)",
    "pathname": "Required, string type, represents the path part of the URL",
    "port": "Optional, string type, represents the port number of the URL",
    "protocol": "Required, string type, represents the protocol part of the URL",
    "search": "Optional, string type, represents the query parameter part of the URL"
  },
  "origin": "Required, string type, represents the origin information of the page (protocol + host + port)",
  "outerHeight": "Required, number type, represents the height of the entire browser window (including toolbars, etc.)",
  "outerWidth": "Required, number type, represents the width of the entire browser window",
  "pageXOffset": "Required, number type, represents the horizontal scroll offset of the page",
  "pageYOffset": "Required, number type, represents the vertical scroll offset of the page",
  "screen": {
    "height": "Required, number type, represents the height of the screen (in pixels)",
    "width": "Required, number type, represents the width of the screen (in pixels)"
  },
  "screenX": "Required, number type, represents the horizontal position of the window relative to the left side of the screen",
  "screenY": "Required, number type, represents the vertical position of the window relative to the top of the screen",
  "scrollX": "Required, number type, represents the horizontal scroll offset of the page",
  "scrollY": "Required, number type, represents the vertical scroll offset of the page"
}

Last updated

Was this helpful?