Windows Dev Center

EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

DOMEventMixin.addEventListener method

Applies to Windows and Windows Phone

Adds an event listener to the control.

Syntax


domEventMixin.addEventListener(type, listener, useCapture);

Parameters

type

Type: String

The type (name) of the event.

listener

Type: Function

The listener to invoke when the event gets raised.

useCapture

Type: Boolean

true to initiate capture; otherwise, false.

Return value

This method does not return a value.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Ui.js

See also

DOMEventMixin

 

 

Afficher:
© 2015 Microsoft