How can you dispatch a synthetic event object?
A
dispatchEvent()
B
dispatch()
C
dispatch(Event)
D
eventdispatch()
Correct Answer: dispatchEvent()
When you have created and initialized a synthetic event object, you can dispatch it using the dispatchEvent() method of EventTarget. The dispatchEvent method throws UNSPECIFIED_EVENT_TYPE_ERR if the event’s type was not specified by initializing the event before the method was called, or if the event’s type is null or an empty string.