element.dispatchEvent() method dispatches the specified event to the current element.
Note: The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().
|eventObj||Required||An event object to be dispatched.|
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.