Share via


eventMixin.addEventListener method

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