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"
}{
"innerHeight": 459,
"innerWidth": 2560,
"location": {
"hash": "",
"host": "test-xq.myshopify.com",
"hostname": "test-xq.myshopify.com",
"href": "https://test-xq.myshopify.com/products/tomato-passata-braised-lamb-shanks-with-mash-and-salsa-verde",
"origin": "https://test-xq.myshopify.com",
"pathname": "/products/tomato-passata-braised-lamb-shanks-with-mash-and-salsa-verde",
"port": "",
"protocol": "https:",
"search": ""
},
"origin": "https://test-xq.myshopify.com",
"outerHeight": 1392,
"outerWidth": 2560,
"pageXOffset": 0,
"pageYOffset": 0,
"screen": {
"height": 1440,
"width": 2560
},
"screenX": 0,
"screenY": 0,
"scrollX": 0,
"scrollY": 0
}Last updated
Was this helpful?