as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

EventTarget

https://dom.spec.whatwg.org/#interface-eventtarget

Extended by

Methods

addEventListener()

addEventListener(type, listener, options?): void

Adds an event listener.

Parameters

type

string

The event to listen to.

listener

EventListener

The Event Handler function.

options?

Ignore.

boolean AddEventListenerOptions

Returns

void


dispatchEvent()?

optional dispatchEvent(event): boolean

Dispatches an event to the target

Parameters

event

Event

The event which signals an occurrenceo.

Returns

boolean

TODO

Add and define in the implementations, keep it optional for now.


removeEventListener()

removeEventListener(type, listener, options?): void

Removes an event listener.

Parameters

type

string

The event to listen to.

listener

EventListener

The Event Handler function to be removed.

options?

Ignore.

boolean EventListenerOptions

Returns

void


Last updated: Oct 02, 2025