dispatchEvent(evt: Event): void Dispatches an event on the document. Parameters evt: Event The event to dispatch.