The wix-window-frontend module contains functionality that pertains to the current browser window. Learn more.
Perform actions on an object
- copyToClipboard( )
Copies text to the site visitor's clipboard.
- getAppPageData( )
Returns the data passed to a custom app page.
- getBoundingRect( )
Returns information about the window.
- getCurrentGeolocation( )
Returns the current geolocation of the user.
- getRouterData( )
Returns the data that a router passed to the page in its response.
- openLightbox( )
Opens a lightbox and optionally passes it the given data.
- openModal( )
Opens a modal window that displays the specified web page.
- postMessage( )
Sends a message to the page's parent.
- scrollBy( )
Scrolls the page by a given number of pixels.
- scrollTo( )
Scrolls the page to a specific location on the page.
- trackEvent( )
Sends a tracking event to external analytics tools.
The ConsentPolicy API is used to perform actions related to the user's allowed cookies and 3rd-party data transfer, such as for GDPR or CCPA purposes.
A lightbox pops up on your site to grab your visitor's attention.
The Multilingual API is used when working with the languages in a multilingual site.
The Rendering API is used to control when code is run as a page is being loaded.
The Warmup Data API is used to optimize data loading for sites that render both on the server and in the browser, allowing costly data fetching operations to ...