wix-window
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
- browserLocale
Gets the locale of the site visitor's browser.
- consentPolicy
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.
- formFactor
Gets what kind of device is being used to view the page.
- lightbox
A lightbox pops up on your site to grab your visitor's attention.
- locale
Deprecated. The locale property is being deprecated. Use the browserLocale property instead.
- multilingual
The Multilingual API is used when working with the languages in a multilingual site.
- referrer
Gets the HTTP referrer header field.
- rendering
The Rendering API is used to control when code is run as a page is being loaded.
- viewMode
Gets which mode the site is currently being viewed in.
- warmupData
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 ...
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.
- ConsentPolicy
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.
- Lightbox
A lightbox pops up on your site to grab your visitor's attention.
- Multilingual
The Multilingual API is used when working with the languages in a multilingual site.
- Rendering
The Rendering API is used to control when code is run as a page is being loaded.
- WarmupData
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 ...