The wix-window module contains functionality that pertains to the current browser window. Learn more.
Additional information about this section
Store values associated with an object
Gets the locale of the site visitor's browser.
Gets what kind of device is being used to view the page.
Deprecated. The locale property is being deprecated. Use the browserLocale property instead.
Gets the HTTP referrer header field.
Gets which mode the site is currently being viewed in.
Perform actions on an object
- copyToClipboard( )
Copies text to the site visitor's clipboard.
- 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 ...