onbeforenavigate event

1 out of 1 rated this helpful - Rate this topic

Occurs before navigation.

Syntax


WinJS.Navigation.addEventListener("beforenavigate", listenerName);
or
WinJS.Application.onbeforenavigate = listenerName;


Event information

SynchronousNo
BubblesYes
CancelableYes

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: contains the location being navigated to
  • state: contains 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

Base.js

 

 

Build date: 12/5/2012

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