WinJS.Navigation.navigate function
Navigates to a location with optional state values.
Syntax
WinJS.Navigation.navigate(location, initialState).done( /* Your success and error handlers */ );
Parameters
location
Type: objectThe URI to navigate to.
initialState [optional]
Type: objectOne or more user-defined key-value pairs.
Return value
Type: Promise**
A promise that completes with a value indicating whether or not the navigation was successful.
Requirements
Minimum WinJS version |
WinJS 1.0 |
Namespace |
WinJS.Navigation |
See also
For developers
Your first app - Part 3: PageControl objects and navigation
Quickstart: Using single-page navigation
Quickstart: Adding a nav bar (NavBar)
Quickstart: Using a hub control for layout and navigation
Navigation and navigation history sample
For designers
Top app bar
Guidelines for the hub control
Guidelines for app bars