Appends an event listener for a type of events.
<string> forms.addEventListener(type :string, listener: (this: Element, ev:any) => any);
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 Java |