Next Experience client-side scripting global variables
-
- UpdatedAug 3, 2023
- 1 minute read
- Vancouver
- Navigation and UI
The Vancouver release is no longer supported. As such, the product documentation and release notes are provided for informational purposes only, and will not be updated.
Next Experience global variables are used in client scripts to determine whether Next Experience is applied to a page.
- NOW.isUsingPolaris
- Returns true if Next Experience is applied to the current page.
- NOW.isPolarisWrapper
- Returns true if the page is running in the Next Experience
Unified Navigation. This global variable exists only in the Unified Navigation.
For more information about the Unified Navigation, see Using the Next Experience Unified Navigation.
Example
Client script: