WinJS.Navigation.navigate function

3 out of 23 rated this helpful - Rate this topic

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

Base.js

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.