method EventTarget.dispatchEventEventTarget.dispatchEvent(event: Event): booleanDeprecatedDispatches a synthetic event to event target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. Parametersevent: EventReturn Typeboolean