Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
https://dom.spec.whatwg.org/#interface-eventtarget

Methods

addEventListener()

addEventListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions | undefined): void Adds an event listener.

Parameters

type
string The event to listen to.
listener
EventListener The Event Handler function.
options?
boolean | AddEventListenerOptions | undefined Ignore.

removeEventListener()

removeEventListener(type: string, listener: EventListener, options?: boolean | EventListenerOptions | undefined): void Removes an event listener.

Parameters

type
string The event to listen to.
listener
EventListener The Event Handler function to be removed.
options?
boolean | EventListenerOptions | undefined Ignore.

dispatchEvent()

dispatchEvent(event: Event): boolean Dispatches an event to the target

Parameters

event
Event The event which signals an occurrenceo. Add and define in the implementations, keep it optional for now.

Returns

boolean
Last modified on July 22, 2026