addEventListener method
Collapse the table of content
Expand the table of content

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 WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

DOMEventMixin

 

 

Show:
© 2016 Microsoft