document.createEvent() method creates an event of the type specified.
The returned object should be first initialized and can then be passed to targetElement.dispatchEvent.
|type||Required||A string that represents the type of event to be created.|
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.