The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).
MouseEvent.initMouseEvent()
MDN Reference
The
MouseEvent.initMouseEvent()method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).