[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/API/EventTarget/dispatchEvent [Back]  [Original]

EventTarget.dispatchEvent() - API | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

EventTarget.dispatchEvent()

Baseline
Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 ..

. "" "" .

In this article

cancelled = !target.dispatchEvent(event)

dispatchEvent UNSPECIFIED_EVENT_TYPE_ERR, , null . ; : , .

dispatchEvent => => , . document.createEvent initEvent , , , initMouseEvent initUIEvent.

.

Specification
DOM
# ref-for-dom-eventtarget-dispatchevent

dispatchEvent create-init-dispatch, .

document.createEvent initEvent , , initMouseEvent initUIEvent.

Event object.


Web Proxy Viewer  |  New URL  |  Original Page