|EventTargetAddEventListener Method (String, DOMEventHandler, Boolean)|
public void AddEventListener( string type, DOMEventHandler handler, bool useCapture )
Public Sub AddEventListener ( type As String, handler As DOMEventHandler, useCapture As Boolean )
public: void AddEventListener( String^ type, DOMEventHandler^ handler, bool useCapture )
member AddEventListener : type : string * handler : DOMEventHandler * useCapture : bool -> unit
If an IEventListener is added to an EventTarget while it is processing an event, it will not be triggered by the current actions but may be triggered during a later stage of event flow, such as the bubbling phase.
If multiple identical Event Listeners are registered on the same EventTarget with the same parameters the duplicate instances are discarded. They do not cause the IEventListener to be called twice and since they are discarded they do not need to be removed with the RemoveEventListener(String, DOMEventHandler, Boolean) method.