> 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: openModal(url: string, options: OpenModalOptions) # Method package: wixWindowFrontend # Method menu location: wixWindowFrontend --> openModal # Method Link: https://dev.wix.com/docs/velo/apis/wix-window-frontend/open-modal.md # Method Description: Opens a modal window that displays the specified web page. A modal window displays the page specified by the `url` property over a current page. Unlike a popup, which is opened by calling [`openLightbox()`](https://dev.wix.com/docs/sdk/frontend-modules/window/open-lightbox.md) method, a window opened by `openModal()` isn't part of a site's structure. Only 1 modal window can be open at any given time. Therefore, opening a modal window closes an already open modal window if there is one. > **Note:** The specified `url` must be an HTTPS URL. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Open a modal window ```javascript import wixWindowFrontend from 'wix-window-frontend'; // ... wixWindowFrontend.openModal("https://en.wikipedia.org/wiki/Wix.com", { "width": 750, "height": 500 } ); ``` ## Open a modal window and log a message when it's closed ```javascript import wixWindowFrontend from 'wix-window-frontend'; // ... wixWindowFrontend.openModal("https://en.wikipedia.org/wiki/Wix.com", { "width": 750, "height": 500 } ) .then( () => { console.log("Modal closed."); } ); ``` ---