addEventListener method
Registers an event listener
![]() ![]() |
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.
Value Meaning - 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
- Document Object Model (DOM) Level 2 Events Specification, Section 1.3.1
See also
Show:

