[edit] Summary
Creates an event of the type specified. The returned object should be first initialized and can then be passed to element.dispatchEvent.
[edit] Syntax
var event = document.createEvent(type);
event is the created Event object.
type is a string that represents the type of event to be created. Possible event types include "UIEvents", "MouseEvents", "MutationEvents", and "HTMLEvents". See Notes section for details.
[edit] Example
This example demonstrates simulating