> 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.viewMode() # Method Link: https://dev.wix.com/docs/sdk/frontend-modules/window/view-mode.md # Method Description: Gets which mode a site is currently being viewed in. The `viewMode` property gets either: + `"Preview"`: When previewing a site using the **Preview** button in the editor. + `"Site"`: When viewing a published site. + `"Editor"`: When viewing a [Wix Blocks](https://support.wix.com/en/article/wix-blocks-check-out-our-articles) built widget in the editor. # Method Permissions: # Method Permissions Scopes IDs: undefined # Method Code Examples: ## Get a window's view mode ```javascript import { window } from '@wix/site-window'; // ... let viewMode = await window.viewMode(); // "Site" ```