Expand Minimize

addEventListener method

Registers an event listener

Document Object Model (DOM) Level 2 Events Specification, Section 1.3.1Internet Explorer 10

Syntax

var retval = SVGElementInstance.addEventListener(type, listener, useCapture);

Parameters

type [in]

Type: DOMString

Specifies the name of the event that the listener responds to.

listener [in]

Type: EventListener

Either a string that specifies the name of a function or an inline function to be executed when the event is fired.

useCapture [in, optional]

Type: boolean

Specifies whether the event bubbles to other objects.

ValueMeaning
true

The event does not bubble to other objects.

false

The event bubbles to other objects.

 

Return value

Type: HRESULT

This method can return one of these values.

S_OK

Standards information

See also

SVGElementInstance

 

 

Show:
© 2014 Microsoft