onbeforenavigate event

onbeforenavigate event

[This documentation is preliminary and is subject to change.]

Applies to: Metro style apps only

Occurs before navigation.

Syntax


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


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

Requirements

Minimum supported client

Windows 8 Consumer Preview

Minimum supported server

Windows Server 8 Beta

Namespace

WinJS.Navigation

Library

Base.js

 

 

Build date: 2/10/2012

Ajouts de la communauté

AJOUTER
Afficher:
© 2017 Microsoft