Next Experience client-side scripting global variables
reference australia Updated Sep 10, 2026 1 min read next-exp-client-script-globals.md
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 Next Experience Unified Navigation.
Client script:
JavaScript
// Reload the current page in the unified navigator if not currently in the unified navif (NOW.isUsingPolaris && (!top.NOW || top.NOW.isPolarisWrapper !== "true")) { var currentPath = window.location.pathname + window.location.search; top.window.location.href = "/now/nav/ui/classic/params/target/" + encodeURIComponent(currentPath)}Parent Topic:Configuring the Next Experience UI
Related topics
46 lines · 1.9 KB
---
title: Next Experience client-side scripting global variables
description: Next Experience global variables are used in client scripts to determine whether Next Experience is applied to a page.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/platform-user-interface/next-exp-client-script-globals.html
release: australia
topic_type: reference
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Configure, Next Experience UI, Configure UIs and portals, Configure user experiences]
---
# Next Experience client-side scripting global variables
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 [Next Experience Unified Navigation](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/using-the-next-experience-global-header.md).
Client script:
```
// Reload the current page in the unified navigator if not currently in the unified nav
if (NOW.isUsingPolaris && (!top.NOW || top.NOW.isPolarisWrapper !== "true")) {
var currentPath = window.location.pathname + window.location.search;
top.window.location.href = "/now/nav/ui/classic/params/target/" + encodeURIComponent(currentPath)
}
```
**Parent Topic:**[Configuring the Next Experience UI](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/next-experience-ui-admin.md)
**Related topics**
[PolarisUI API - Scoped](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/server-api-reference/PolarisUIScopedAPI.md)
| title | Next Experience client-side scripting global variables |
| description | Next Experience global variables are used in client scripts to determine whether Next Experience is applied to a page. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/platform-user-interface/next-exp-client-script-globals.html |
| release | australia |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | ConfigureNext Experience UIConfigure UIs and portalsConfigure user experiences |