> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: siteWindow.getBoundingRect() # Method Link: https://dev.wix.com/docs/sdk/frontend-modules/window/get-bounding-rect.md # Method Description: Retrieves information about a window. Returns information about a window's size, document's size, and current scroll position. This method returns `null` for sites with [SSR](https://developer.mozilla.org/en-US/docs/Glossary/SSR). # Method Permissions: # Method Permissions Scopes IDs: undefined # Method Code Examples: ## Get information about a window ```javascript import { window } from '@wix/site-window'; // ... window.getBoundingRect() .then( (windowSizeInfo) => { let windowHeight = windowSizeInfo.window.height; // 565 let windowWidth = windowSizeInfo.window.width; // 1269 let documentHeight = windowSizeInfo.document.height; // 780 let documentWidth = windowSizeInfo.document.width; // 1269 let scrollX = windowSizeInfo.scroll.x; // 0 let scrollY = windowSizeInfo.scroll.y; // 120 } ); ```