AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.3.0" />

.NET API 960,512 bytes

 EventTarget

public abstract class EventTarget : IEventTarget
Event target base of all DOM nodes.
protected EventTarget()

public void AddEventListener(string type, DomEventHandler callback = null, bool capture = false)

Register an event handler of a specific event type on the Node.

public bool Dispatch(Event ev)

Dispatch an event to this Node.

public bool HasEventListener(string type)

Checks if the given event type has any listeners registered.

public void InvokeEventListener(Event ev)

Calls the listener registered for the given event.

public void RemoveEventListener(string type, DomEventHandler callback = null, bool capture = false)

Removes an event listener from the Node.

public void RemoveEventListeners()

Removes all listeners.