Appends an event listener for a type of events.

<string> forms.addEventListener(type :string, listener: (this: Element, ev:any) => any);

Parameters

Parameter Description
type A case-sensitive string representing the event type to listen for.
listener The object that receives a notification (an object that implements the Event interface) when an event of the specified type occurs. This must be null or a JavaScript function. The JavaScript function receives the element which cause the event and details about the event itself.