wix-window-frontend
The wix-window-frontend 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.
- formFactor
Gets what kind of device is being used to view the page.
- referrer
Gets the HTTP referrer header field.
- viewMode
Gets which mode the site is currently being viewed in.
The endpoints exposed by this API
Copies text to the site visitor's clipboard.
Returns the data passed to a custom app page.
Returns information about the window.
Returns the current geolocation of the user.
Returns the data that a router passed to the page in its response.
Opens a lightbox and optionally passes it the given data.
Opens a modal window that displays the specified web page.
Sends a message to the page's parent.
Scrolls the page by a given number of pixels.
Scrolls the page to a specific location on the page.
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 ...