as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート
メインコンテンツへスキップ
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
最終更新日 2026年8月25日