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.
A lightbox pops up on your site to grab your visitor's attention.
Gets the locale of the current environment.
The Multilingual API is used when working with the languages in a multilingual site.
Gets the HTTP referrer header field.
The Rendering API is used to control when code is run as a page is being loaded.
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 inside the vertical [gridlines] (https://support.wix.com/en/article/wix-editor-editor-gridlines).
- trackEvent( )
Sends a tracking event to external analytics tools.