Is a DOMString representing the name of the event.
eventInitOptional
Is an EventInit dictionary, having the following fields:
"bubbles", optional and defaulting to false, of type Boolean, indicating if the event bubbles or not.
"cancelable", optional and defaulting to false, of type Boolean, indicating if the event can be canceled or not.
Example
// create a look event that bubbles up and cannot be canceled
var ev = new Event("look", {"bubbles":true, "cancelable":false});
document.dispatchEvent(ev);