With the event api, it is possible to create a synthetic MouseEvent and have it dispatched programmatically by a DOM element.
By adding an event listener to the docum