Methods in DOM Level 2 Events
name | of object | returns | description |
---|---|---|---|
addEventListener(type,listener,useCapture) | EventTarget | (none) | |
createEvent(eventType) | DocumentEvent | Event | Creates and returns a new Event object. |
dispatchEvent(evt) | EventTarget | Boolean | Dispatches an event to the invoking object. |
initEvent(eventTypeArg,canBubbleArg,cancelableArg) | Event | (none) | Initialize the event object prior to dispatching it. |
initMouseEvent(typeArg,canBubbleArg,cancelableArg,…) | MouseEvent | (none) | |
initMutationEvent(typeArg,canBubbleArg,cancelableArg,…) | MutationEvent | (none) | |
initUIEvent(typeArg,canBubbleArg,cancelableArg,…) | UIEvent | (none) | |
preventDefault() | Event | (none) | |
removeEventListener(type,listener,useCapture) | EventTarget | (none) | |
stopPropagation() | Event | (none) |