Navigates to a location.
Syntax
WinJS.Navigation.navigate(location, initialState).done( /* Your success and error handlers */ );
Parameters
- location
-
Type: object
The location to navigate to. Generally the location is a string containing the URL, but it may be anything.
- initialState
-
Type: object
A user-defined object that represents the navigation state that may be accessed through state.
Return value
Type: Promise
A promise that is completed with a value that indicates whether or not the navigation was successful (true if successful, otherwise false).
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