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

eventMixin.addEventListener method

Applies to Windows and Windows Phone

Adds an event listener to the control.

Syntax


eventMixin.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

If true, initiates capture, otherwise false.

Return value

This method does not return a value.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

See also

eventMixin

 

 

Show:
© 2017 Microsoft