> 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: viewMode() # Method package: wixWindowFrontend # Method menu location: wixWindowFrontend --> viewMode # Method Link: https://dev.wix.com/docs/velo/apis/wix-window-frontend/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 Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get a window's view mode ```javascript import wixWindowFrontend from 'wix-window-frontend'; // ... let viewMode = wixWindowFrontend.viewMode; // "Site" ``` ---