onloaded event

onloaded event

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

Applies to: Metro style apps only

Occurs after DOMContentLoaded has occurred.

Syntax


WinJS.Application.addEventListener("loaded", listenerName);
or
WinJS.Application.onloaded = listenerName;


Event handler parameters

eventInfo

Type: CustomEvent

An object that contains information about the event. The detail property of this object includes the following subproperties:

  • type: "loaded"
  • setPromise:The Promise indicates that the event listener has pending asynchronous work. When the Promise is completed, the next handler is dispatched.

Remarks

For more information about the application lifecycle, see Managing the application lifecycle.

Requirements

Minimum supported client

Windows 8 Consumer Preview

Minimum supported server

Windows Server 8 Beta

Namespace

WinJS.Application

Library

Base.js

 

 

Build date: 2/10/2012

Ajouts de la communauté

AJOUTER
Afficher:
© 2016 Microsoft