WinJS.Navigation Namespace

2 out of 3 rated this helpful - Rate this topic

Provides functionality for dealing with basic navigation, including the navigation stack.

For more information about using navigation, see the Navigation sample.

The WinJS.Navigation namespace has these types of members:

Properties

PropertyDescription

canGoBack property

Determines whether it is possible to navigate backwards.

canGoForward property

Determines if it is possible to navigate forwards.

history property

Gets or sets the navigation history.

location property

Gets or sets the current location.

state property

Gets or sets a user-defined object that represents the state associated with the current location.

 

Functions

FunctionDescription

addEventListener function

Adds an event listener to the control.

back function

Navigates backwards.

forward function

Navigates forwards.

navigate function

Navigates to a location.

removeEventListener function

Removes an event listener from the control.

 

Events

EventDescription

onbeforenavigate event

Occurs before navigation.

onnavigated event

Occurs after navigation has taken place.

onnavigating event

Occurs when navigation is taking place.

 

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

See also

Navigation sample

 

 

Build date: 12/5/2012

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