A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/EventTarget/dispatchEvent below:

dispatchEvent ยท WebPlatform Docs

dispatchEvent Summary

Sends an event to the current element.

Method of dom/EventTargetdom/EventTarget

Syntax
var defaultPrevented = eventTarget.dispatchEvent(event);
Parameters event
Data-type
String

The event object to dispatch.

Return Value

Returns an object of type BooleanBoolean

Whether any of the event handlers called preventDefault.

Default. The default action is permitted.

The caller should prevent the default action.

Notes

Events that the dispatchEvent method dispatches are subject to the same capturing and bubbling behavior as events that the browser dispatches. You cannot cancel some events. For more information, see the documentation for the event.

Related specifications
DOM Level 2 Events
Recommendation
Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4