.dispatchEvent()
boolean Node.dispatchEvent(Event event)
Dispatch on event.
target.dispatchEvent(event);Dispatches event on target. Returns true if either the event’s cancelable attribute value is false, or its preventDefault() method is not invoked, and false otherwise.
See also: .addEventListener(), .removeEventListener()