Occurs when navigation is taking place.
Syntax
WinJS.Navigation.addEventListener("navigating", listenerName);
or
WinJS.Application.onnavigating = listenerName;
Event information
| Synchronous | No |
|---|---|
| Bubbles | Yes |
| Cancelable | Yes |
Event handler parameters
- eventInfo
-
Type: CustomEvent
An object that contains information about the event. The detail property of this object contains the following sub-properties:
- location: the location being navigated to.
- state: the state associated with the location being navigated to.
Remarks
For more information about using navigation, see the Navigation sample.
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
|
Namespace |
WinJS.Navigation |
|
Library |
|
Build date: 12/5/2012